- or download this
2 / 1 = 2
(2 + 1) / 2 = 1.5
...
( 1.4167 / 1.4118 ) / 2 = 1.4142
etc.
The more times you perform the above procedure, the more accurate your
+ answer.
- or download this
#!/usr/bin/perl -w
use strict;
...
my ($guess, $newguess) = @_;
return (abs ($guess - $newguess)); # COMPARES HOW CLOSE OLD GUESS
+AND NEW GUESS ARE
}