image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Mathematics > General Math


Reply

image Approximation for Newton-Raphson Inverse Algorithm Share It Thread Tools Search this Thread image
Old Jun19-09, 06:05 PM                  #1
calebh

calebh is Offline:
Posts: 1
Approximation for Newton-Raphson Inverse Algorithm

I am attempting to make an initial approximation for the inverse algorithm (1/x)

Code:
n = NUMBER TO INVERSE
a = APPROXIMATION

a = a*(2-(n*a))
'a' gets closer to the actual result each time the algorithm is preformed

The problem is finding the initial approximation. An exponential equation seems to fit the best

Code:
a = .5^n
The equation gets more accurate as n increases
http://www09.wolframalpha.com/input/...%29-%28.5^x%29

I chose .5, because in binary, dividing by two is as simple as shifting to the right.

Is there any other way to make a close approximation that is better than .5^n?
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Approximation for Newton-Raphson Inverse Algorithm
Thread Thread Starter Forum Replies Last Post
Newton-Raphson Benx Programming & Comp Sci 17 Mar19-08 08:07 AM
Newton-Raphson method Schrodinger's Dog Calculus & Beyond 6 Jul11-07 11:25 AM
When Newton Raphson Fails relinquished™ Calculus & Beyond 4 Jul16-06 01:29 PM
Newton-Raphson question trap Calculus & Analysis 11 Jan4-05 07:35 PM
Newton-Raphson method for y=1/f(x) Peter_F General Math 2 Jul16-04 05:10 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image