Page 1 of 1

Nth Root

Posted: Sun Aug 27, 2017 8:33 am
by BaseDeltaZero
Is there any way to perform an Nth Root function in MapTools? Any reasonable workarounds if not?

Re: Nth Root

Posted: Sun Aug 27, 2017 3:36 pm
by aliasmask
BaseDeltaZero wrote:Is there any way to perform an Nth Root function in MapTools? Any reasonable workarounds if not?
Yes, you can use the power of 1 over N:

Code: Select all

[math.pow(27,1/3)]

Re: Nth Root

Posted: Tue Aug 29, 2017 2:58 pm
by JamzTheMan
@Wolph42, is the wiki updated with all the Math. functions? IIRC Craig added some math functions in 1.4.0.x? (or where they just updates?)


Looks like some are missing? Quick copy from java:

"math.abs", "math.ceil", "math.floor", "math.cos", "math.cos_r", "math.sin", "math.sin_r", "math.tan", "math.tan_r", "math.acos", "math.acos_r", "math.asin", "math.asin_r", "math.atan", "math.atan_r", "math.atan2", "math.atan2_r", "math.cbrt", "math.cuberoot", "math.hypot", "math.hypotenuse", "math.log", "math.log10", "math.min", "math.max", "math.mod", "math.pow", "math.sqrt", "math.squareroot", "math.toRadians", "math.toDegrees", "math.pi", "math.e", "math.isOdd", "math.isEven", "math.isInt"