Babylonian programer

Hey, this post program is used to calculate the square root of a number thru the Babylonian method, which is:

Captura de pantalla 2017-05-03 a las 8.46.18 p.m..png

just in case you don’t understand check this website about the topic: http://tedmuller.us/Math/SpecialContinuedFraction.htm

Captura de pantalla 2017-05-03 a las 9.54.00 p.m.

lets try it whit 169

Captura de pantalla 2017-05-03 a las 9.54.22 p.m..png

and it works 🙂

 

Deja un comentario