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

Discussion Overview

The discussion revolves around the iterative formula Xn+1 = Xn(2 - NXn) and its application for finding the reciprocal of a number N. Participants explore the mechanics of the iteration, conditions for convergence, and the behavior of the formula under different initial guesses.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks an explanation of how the iteration can be used to find the reciprocal of N without requiring a formal proof.
  • Another participant questions the fixed point of the iteration, suggesting that not all initial guesses will lead to the correct answer.
  • A participant emphasizes the importance of the initial guess X0, proposing that it should be roughly 1/N for better results.
  • There is a mathematical manipulation presented that suggests N can be approximated as 1/Xn, indicating a relationship between the iteration and the reciprocal.
  • One participant mentions the utility of using Excel to experiment with different values for N and X0 to observe the behavior of the iteration.

Areas of Agreement / Disagreement

Participants generally agree on the importance of the initial guess for the iteration's success, but there is no consensus on the specific conditions required for convergence or the best practices for selecting X0.

Contextual Notes

There are limitations regarding the assumptions about the initial guess and the dependence on the choice of N. The discussion does not resolve the mathematical steps involved in proving the effectiveness of the iteration.

Who May Find This Useful

This discussion may be useful for individuals interested in numerical methods, iterative algorithms, and those exploring mathematical approximations for finding reciprocals.

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
4K
Replies
6
Views
7K