In a c++ program, apply the Babylonian Algorithm to compute thesquare root of 2. This algorithm (so
Fantastic news! We've Found the answer you've been seeking!
Question:
In a c++ program, apply the Babylonian Algorithm to compute thesquare root of 2. This algorithm (so called because it was used bythe ancient Babylonians) computes square root of 2 by repeatedlyreplacing one estimate of x with the closer estimate of x = (x +(2/x))/2. Note that this is simply the average of x and 2/x.
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date: