WSQ10 – Babylonian Method

Babylonian Fresco flickr photo by Brimley shared under a Creative Commons (BY-NC) license

Background

In this assignment you will write a function to calculate the square root of a number using the Babylonian method. You can search for that method, it will be easy to find.

What to Do

The function should receive a number and return floating point number. Obviously you should test your function, so create a main program that asks the user a value, calculates the square root and displays that.

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ10 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions on Twitter with the hashtag #TC1017 so we all see your question posted there.

Feature Image Credit

<a title="Babylonian Fresco" href="https://flickr.com/photos/brimley/4156702926">Babylonian Fresco</a> flickr photo by <a href="https://flickr.com/people/brimley">Brimley</a> shared under a <a href="https://creativecommons.org/licenses/by-nc/2.0/">Creative Commons (BY-NC) license</a> </small>
Babylonian Fresco flickr photo by Brimley shared under a Creative Commons (BY-NC) license

CC BY-SA 4.0 WSQ10 – Babylonian Method by admin is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.