On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I know that Perl has a function to determine the square root of a number. > For example, to determine the square root of 121 code "sqrt(121)". Is there a > built-in Perl function that enables one to determine the nth root of a number > where n is a number greater than 2. For example, is there a function that > enables me to determine that the 4th root of 81 is 3?
Mathematicians have more to say about it, but the Nth root is the same (for your purposes) as the 1/Nth power: print "The fourth root of 81 is ", 81 ** (1/4), ".\n"; Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>