mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Math: Add cbrt() function
This commit is contained in:
parent
5be287b536
commit
d41acf34cc
@ -102,7 +102,10 @@ class Math(callbacks.Plugin):
|
|||||||
return cmath.sqrt(x)
|
return cmath.sqrt(x)
|
||||||
else:
|
else:
|
||||||
return math.sqrt(x)
|
return math.sqrt(x)
|
||||||
|
def _cbrt(x):
|
||||||
|
return math.pow(x, 1.0/3)
|
||||||
_mathEnv['sqrt'] = _sqrt
|
_mathEnv['sqrt'] = _sqrt
|
||||||
|
_mathEnv['cbrt'] = _cbrt
|
||||||
_mathEnv['abs'] = abs
|
_mathEnv['abs'] = abs
|
||||||
_mathEnv['max'] = max
|
_mathEnv['max'] = max
|
||||||
_mathEnv['min'] = min
|
_mathEnv['min'] = min
|
||||||
|
Loading…
Reference in New Issue
Block a user