Funzioni matematiche
In Web Python sono state rimpiazzate le funzioni matematiche di Python con quelle di Javascript abs(x)sqrt(x)sin(x)cos(x)tan(x)asin(x)acos(x)atan(x)atan2(y,x) # angle whose tangent is y/x; -pi to piradians(theta)degrees(phi)sqrt(x)exp(x)log(x)log10(x)pow(x,y)piceil(x)floor(x)sign(x) # +1 if x > 0, -1 if x < 0, 0 if x == 0round(x,N) # round x to nearest integer; optional N decimal placesmax(a, b, c, …)min(a, b, … Leggi tutto