|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: [Study]: Searching for square rootsby jimbojones (Friar) |
| on Nov 14, 2006 at 09:07 UTC ( [id://583966]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Hi, I think your problem is in your assumption of the maximum possible value for the square root of numbers in the range of 0 to 1. I managed to fix your code with one line to handle the 0.5 case, but I'll leave it to you to find it.
<Reveal this spoiler or all in this thread>
- j
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||