Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: Help w/ Code Optimizationby sifukurt (Hermit) |
on Dec 26, 2001 at 22:58 UTC ( [id://134463]=note: print w/replies, xml ) | Need Help?? |
When I try to run your code, I get an incorrect answer for the root. I think the problem is in the exponent. The exponents are $root and ($root - 1), respectively. When I run this code: I get this for output:
___________________ Kurt
In Section
Seekers of Perl Wisdom
|
|