Simple implementation of the Babylonian-/ Heron-Method to compute the square root. Further method explanations at: http://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
$ ruby sqrt.rb 9
to compute the square root of '9':
x = 1; b = 9
x = 5; y = 1
x = 3; y = 3
Elapsed time: 0.414677 !
The MIT License (MIT), see LICENSE file.