Square Root using Newton Iteration
So.Dudes heres the deal.Yesterday a friend of mine wanted me to help him with a function that calculates square root of a positive number using Newton's method.So I came up with this:
Code:
#include <iostream> 
Re: Square Root using Newton Iteration
Does it work? Have you entered some test values, and did the correct results come out? If not, what results did you get?

Re: Square Root using Newton Iteration
Quote:

Re: Square Root using Newton Iteration
Check the algorithm for newton's ramson formula .. Actually wahtever you wrote the program that is by Iterative evaluation of a square root
check here also... http://www.macs.hw.ac.uk/~pjbk/pathw...1/node124.html 
All times are GMT +5.5. The time now is 23:24. 