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

  • Context: Undergrad 
  • Thread starter Thread starter ryan750
  • Start date Start date
  • Tags Tags
    Reciprocal
Click For Summary
SUMMARY

The iteration formula Xn+1 = Xn(2 - NXn) effectively finds the reciprocal of a number N through a specific iterative process. The convergence of this method relies on the initial guess X0, which should ideally be close to 1/N for optimal results. The formula demonstrates that as Xn approaches the reciprocal of N, the values stabilize, confirming its utility in numerical methods. This approach is particularly useful for those familiar with spreadsheet tools like Excel for experimentation with different values.

PREREQUISITES
  • Understanding of iterative methods in numerical analysis
  • Familiarity with fixed-point iteration concepts
  • Basic knowledge of Excel for implementing calculations
  • Concept of convergence in mathematical sequences
NEXT STEPS
  • Explore fixed-point iteration methods in numerical analysis
  • Learn about convergence criteria for iterative algorithms
  • Experiment with Excel to visualize the iteration process
  • Study the derivation of the formula Xn+1 = Xn(2 - NXn)
USEFUL FOR

Mathematicians, data analysts, and anyone interested in numerical methods for calculating reciprocals or exploring iterative algorithms.

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.
 
Physics 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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 24 ·
Replies
24
Views
6K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
6
Views
7K