![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^2: [Study]: Searching for square rootsby Hofmator (Curate) |
on Nov 14, 2006 at 14:17 UTC ( #583968=note: print w/replies, xml ) | Need Help?? |
Nothing is totally wrong :)
The only thing that you did not consider is that x*x < x for x < 1. That's why your code doesn't work for input < 1. Apart from that a couple of small comments concerning your code.
-- Hofmator Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Seekers of Perl Wisdom
|
|