Blockland Forums > Modification Help
y root of x
Pages: (1/1)
Electrk:
How would you do y root of x?
Like square root but any number instead of 2
Treynolds416:
mPow(%var,0.5) is square root
mPow(%var,1/3) is cube root
etc
roots are actually just exponents
Edit for more clarity:
mPow(4,0.5) = 2
mPow(8,1/3) = 2
mPow(16,0.25) = 2
mPow(32,0.2) = 2
Electrk:
thanks
elm:
mSqrt(int); ????
Ipquarx:
mPow(%x, 1/%n);
Gets the nth root of x,
because in terms of exponents,
x^(b/n) is the nth root of x, to the power of b.
Pages: (1/1)