Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Lambert function solution in Clear category for Super Root by vit.aborigen
from math import e, log, exp
def lambertW(x, prec=0.0000000000001):
w = 0
w_min = w * exp(w)
w_max = (w + 1) * exp(w)
while prec < abs((x-w_min)/w_max):
w -= (w_min-x)/(w_max-(w+2)*(w_min-x)/(2*w+2))
if (prec > abs((x-w_min)/w_max)):
break
w_min = w*exp(w)
w_max = (w+1)*exp(w)
return w
def super_root(number):
return e ** lambertW(log(number, e))
Nov. 27, 2018
Comments: