Hplus(Formula)

From YiffieMon
Revision as of 15:02, 3 April 2020 by Cmdrtako (talk | contribs) (Created page with "HPlus:Take the highest plus the the highest times 1-(0.5 ** (the total of the others(1/ highest))) <math>1-0.5^{\left(x\cdot\frac{1}{a}\right)}</math> <nowiki>def hplus(num...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

HPlus:Take the highest plus the the highest times 1-(0.5 ** (the total of the others(1/ highest)))

Failed to parse (PNG conversion failed; check for correct installation of latex and dvipng (or dvips + gs + convert)): 1-0.5^{\left(x\cdot\frac{1}{a}\right)}

def hplus(numbers):
    sum=0
    highest = numbers[0]
    for x in numbers:
		sum += x
	    if x > highest:
		    highest = x
 	sum -= highest
	return highest + (highest * (1 - (0.5 ** (sum * (1 / highest)))))