Skip to main content

WSQ13 - Babylonian Method

1 min read

Hey everybody!!!

Today I wrote a programm which calculates the square root of a number using a computing method called BABYLONIAN. It's very simple, and you can learn how it works on Wikipedia.

http://en.wikipedia.org/wiki/Methods_of_computing_square_roots

On my code, I put a cout line to see how is it working, but you can just delete it if you want. Enjoy it!

https://github.com/juanpsantana/WSQs/blob/master/WSQ13.cpp