Draw Nth root

BlitzMax Forums/BlitzMax Programming/Draw Nth root

beanage(Posted 2009) [#1]
I need more than Sqr, i need the 3rd root. How can i get it?


Brucey(Posted 2009) [#2]
Ask google?

"3rd root of 74088"

:-)


beanage(Posted 2009) [#3]
Oh that was too helpful thank you. Seriously, a bmax command might be even more helpful!


xlsior(Posted 2009) [#4]
Square root: number^(1/2)
3rd root: number^(1/3)
4th root: number^(1/4)
5th root: number^(1/5)
etc...


_Skully(Posted 2009) [#5]
And to wrap it up...

Function Root:float(value:float,root:float=2)
   return value^(1.0/root)
End Function



N(Posted 2009) [#6]
That should be :Double, not :Float.


beanage(Posted 2009) [#7]
Thank you for your answers. Must have been drunken when i posted this question, thanks.