-
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
Indian Tourist Visa
Tourist Visa to UK
-
-
Poster
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!
-
-
Member
Haha... try Wolfram Alpha 
No one is going to program your homework assignment
-
-
Poster
-
-
Poster
#include <math.h>
There's a start. Now look at the functions in that header file. They'll help...... I think.
-
-
n00b
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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks