Xn+1 = Xn(2 - NXn) can be used to find the reciprocal

  • Thread starter Thread starter ryan750
  • Start date Start date
  • Tags Tags
    Reciprocal
AI Thread Summary
The iteration formula Xn+1 = Xn(2 - NXn) can be used to find the reciprocal of N by converging towards a fixed point that approximates 1/N. The initial guess X0 should be close to 1/N for optimal results, as not all starting values will yield the correct answer. Users are encouraged to experiment with different values of N and X0 in Excel to observe how the formula behaves. The iteration effectively rearranges to show that N is approximately equal to 1/Xn, providing a good estimate for the reciprocal. This method highlights the importance of choosing an appropriate initial guess for successful convergence.
ryan750
Messages
23
Reaction score
0
can any1 explain why this iteration:

Xn+1 = Xn(2 - NXn)

can be used to find the reciprocal of N. I don't ned proof or to show that it does but i would like to know if sum1 can break it down and explain how it does it.
 
Mathematics news on Phys.org
What is the fixed point of the iteration?
 
ryan750,

To elaborate on Hurkyl's question, not all initial guesses lead to the correct answer. What condition do you have to put on X0, for the iteration to work?

If you know how to use Excel, try writing a spread sheet that does this calculation, and then play around with different values for N and X0. You might see for yourself what makes this formula work. It's not too hard.
 
jdavel said:
ryan750,

To elaborate on Hurkyl's question, not all initial guesses lead to the correct answer. What condition do you have to put on X0, for the iteration to work?

If you know how to use Excel, try writing a spread sheet that does this calculation, and then play around with different values for N and X0. You might see for yourself what makes this formula work. It's not too hard.

it works for all values of N and u can use any value of Xn - but u would preferably choose a number that is royughly 1/n. So if N was 7 u would use 0.1. If n was 53 u would use 0.02.
 
Xn+1 = Xn(2 - NXn)

=> (Xn+1)/Xn = 2 - NXn
=> NXn = 2 - (Xn+1)/Xn
=> NXn = (2Xn -Xn+1)/Xn
=> N = (2Xn - Xn+1)/(Xn)^2
=> N ~= Xn/(Xn)^2
=> N ~= 1/Xn

Which is a good estimate for the recipricol.

I found sum1 that could do it.

i didn't think about just rearranging the formula.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top