Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - root(<n number>, <n root>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ROOT(<N number>, <N root>)
 Computes cube roots, fifth roots, and other roots for which SQRT() fails.
 Returns <expN> which is the <root> of <number>.

 <number> on which to compute root.
 <root> desired.

 Returns INFINITY() if <number> is negative and <root> is even.

 * Compute the cube root of 100
 m_cube = ROOT( 100, 3 )
 * m_cube contains 4.64

 * Compute the fifth root of 1000
 m_fifth = ROOT( 1000, 5 )
 * m_fifth contains 3.98

 * Compute the seventh root of 5
 m_seven = ROOT( 5, 7 )
 * m_seven contains 1.26

 * Compute the eleventh root of 12345
 m_eleven = ROOT( 12345, 11 )
 * m_eleven contains 2.35


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: INFINITY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson