Cubic root

 

Hello,

How to take cubic root in MetaTrader ?

for example:

CubicRoot(8) = 2;

CubicRoot(27) = 3;

There is only SquareRoot

sqrt(4) =2;

Perhaps Logarithm function should fit ?


Thanks,

Edas

 

Untested

double CubicRoot(double x){ return( MathPow(x, 1./3.) ); }
Untested
 
Thank you !
Reason: