in reply to Calculating Nth root using perl.

for the 4th root you can also use:
my $r4 = sqrt sqrt $num;

Replies are listed 'Best First'.
Re^2: Calculating Nth root using perl.
by QM (Parson) on May 09, 2006 at 22:54 UTC
    ++

    Reminds me of the joke about the carpenter who threw half the nails out, because they were facing the wrong way!

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of