944,016 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1661
  • C++ RSS
Feb 19th, 2007
0

can anybody help me with this

Expand 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
live_atl is offline Offline
1 posts
since Feb 2007
Feb 19th, 2007
0

Re: can anybody help me with this

No one is gonna write that for you.

Read this:

http://math.fullerton.edu/mathews/n2...fensenMod.html
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Feb 19th, 2007
0

Re: can anybody help me with this

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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Feb 21st, 2007
0

Re: can anybody help me with this

Click to Expand / Collapse  Quote originally posted by live_atl ...
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
Reputation Points: 11
Solved Threads: 13
Junior Poster
Lazaro Claiborn is offline Offline
171 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Swapping chars within an array
Next Thread in C++ Forum Timeline: multiple enums problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC