PDA

View Full Version : Can any one help me with this c++ programming question?



Angelica07
05-11-2009, 07:34 AM
Hi,

Can anyone write a c++ programme which allows the user to solve the following non-linear equation:

f(x) = sin(2 x / 5) - x + 1 = 0

to an accuracy of 10^(-5) using both the Bisection Method and the Newton-Raphson method.
The user has to input the appropriate initial estimates to the actual root.

Thanks For The Help!

________________

Visa India (http://www.visa-india.co.uk/)
Indian Tourist Visa (http://www.visa-india.co.uk/)
Tourist Visa to UK (http://www.visa-india.co.uk/)

vivitron 15
05-12-2009, 07:05 PM
LOL - that sounds suspiciously like a uni assignment!

I can't do a jot of c++ programming, but thought I should post since you juse made me spit my smoothie at my pc! :D

eldulche
05-19-2009, 07:49 PM
Haha... try Wolfram Alpha ;)

No one is going to program your homework assignment

oldman2009
05-19-2009, 08:23 PM
LOL - that sounds suspiciously like a uni assignment!

I can't do a jot of c++ programming, but thought I should post since you juse made me spit my smoothie at my pc!:):):)

Recursacro
08-10-2009, 03:25 PM
#include <math.h>

There's a start. Now look at the functions in that header file. They'll help...... I think.

GamesoulMaster
08-22-2009, 04:01 AM
Way to necro the thread... >.>

It was a foolish question anyway. The best answer would've been "Look at how it's done on paper, and then translate that to C++ using the very basic skills taught to you in the first month or two of the course/training"... lol.