YiffieMon:Hplus(Formula)

From AlMeta
Revision as of 20:17, 6 February 2021 by Cmdrtako (talk | contribs)
Jump to: navigation, search

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

[math]\displaystyle{ 1-0.5^{\left(x\cdot\frac{1}{a}\right)} }[/math]

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)))))