mirror of https://github.com/Mikaela/Limnoria.git
Merge pull request #362 from nyuszika7h/progval-testing
Math: Add cbrt() function
This commit is contained in:
commit
0f10c5aa19
|
@ -102,7 +102,10 @@ class Math(callbacks.Plugin):
|
|||
return cmath.sqrt(x)
|
||||
else:
|
||||
return math.sqrt(x)
|
||||
def _cbrt(x):
|
||||
return math.pow(x, 1.0/3)
|
||||
_mathEnv['sqrt'] = _sqrt
|
||||
_mathEnv['cbrt'] = _cbrt
|
||||
_mathEnv['abs'] = abs
|
||||
_mathEnv['max'] = max
|
||||
_mathEnv['min'] = min
|
||||
|
|
Loading…
Reference in New Issue