|
|
| Heron.java |
root = 1.0; lroot = x;
while (Math.abs(root - lroot) > epsilon) {
lroot = root;
root = (root + x / root) / 2.0;
}
|
![]() | Heron (ca. 10-75 AD) described in his
Metrica following method
to compute the square root of a real-valued x:
|
|
| Copyright © 2001, 2002 Andreas Borchert, converted to HTML on February 11, 2002 |