can anybody help me with this

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 1
Reputation: live_atl is an unknown quantity at this point 
Solved Threads: 0
live_atl live_atl is offline Offline
Newbie Poster

can anybody help me with this

 
0
  #1
Feb 19th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,275
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: can anybody help me with this

 
0
  #2
Feb 19th, 2007
No one is gonna write that for you.

Read this:

http://math.fullerton.edu/mathews/n2...fensenMod.html
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: can anybody help me with this

 
0
  #3
Feb 19th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 171
Reputation: Lazaro Claiborn is an unknown quantity at this point 
Solved Threads: 13
Lazaro Claiborn's Avatar
Lazaro Claiborn Lazaro Claiborn is offline Offline
Junior Poster

Re: can anybody help me with this

 
0
  #4
Feb 21st, 2007
Originally Posted by live_atl View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum


Views: 1272 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC