0

Consider the two equations
p = cos(p), p = sin(p)
with solutions 0.7390851332151607 (approximately) and 0 respectively. Implement three programs for
the solution of these two equations.
(a) Fixed point iteration: pk+1 = g(pk).
(b) Fixed point iteration with Aitken acceleration.
(c) Steffensen’s acceleration.
In each case, begin with p0 = .5. Terminate when |pk − cos(pk)| < 10−12 or |pk − sin(pk)| < 10−12.
Comment on the number of iterations required in each case.
2. Use the theorems from class to answer and explain the following: Do you expect fixed point iteration

:rolleyes:i try to write this problem in c++ but didn't work can somebody please help me with this. thank you

4
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by Lazaro Claiborn
0

A pot of gold at the end of the rainbow

> i try to write this problem in c++ but didn't work can somebody please help me with this
Well post it, then we can really start to help you rather than do the work for you (which isn't going to happen), or we make wild guesses as to what your question really is.

0

Consider the two equations
p = cos(p), p = sin(p)
with solutions 0.7390851332151607 (approximately) and 0 respectively. Implement three programs for
the solution of these two equations.
(a) Fixed point iteration: pk+1 = g(pk).
(b) Fixed point iteration with Aitken acceleration.
(c) Steffensen’s acceleration.
In each case, begin with p0 = .5. Terminate when |pk − cos(pk)| < 10−12 or |pk − sin(pk)| < 10−12.
Comment on the number of iterations required in each case.
2. Use the theorems from class to answer and explain the following: Do you expect fixed point iteration

:rolleyes:i try to write this problem in c++ but didn't work can somebody please help me with this. thank you

First of all, when you're dealing with iteration functions and convergence and all related mathematical concepts, there are common techniques used in C++ or some other type of programming languages (i.e using the Math library in conjunction with programming concepts). I recommend searching google for such methods and/or techniques especially with numerical analysis or any type of continuous mathematics (i.e Limits).

Good luck, LamaBot

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.