From: Tobias Nipkow <nipkow@in.tum.de>
Computing Square Roots using the Babylonian Method
René Thiemann
We implement the Babylonian method to compute square roots of numbers.
We provide precise algorithms for naturals, integers and rationals, and
offer an approximation algorithm for linear ordered fields.
http://afp.sourceforge.net/entries/Sqrt_Babylonian.shtml
Enjoy!
Last updated: Nov 21 2024 at 12:39 UTC