By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,831 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,831 IT Pros & Developers. It's quick & easy.

Newton Raphson method

P: 1
I need a c++ program that uses newton raphson method to find the rooys of a function. The program would prompt to put in the degree of the ploynomial, the error bound 10^(n), and the first approximation. Anybody please help if you can. i have been working on this for quite a while. Thanks
Oct 1 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 469
Can you please post some of the code you have so far, and the problems you are having with it?
Oct 2 '08 #2

P: 113
A good place to start would be Wikipedia - Newton's Method. I'd also recommend reading Wolfram's Mathworld entry on Newton's Method.

The main obstruction with using it for user-input functions is that you must know both f(x) and f'(x) beforehand. If, in your case, the polynomial is spelled out for you, it should be rather easy to implement.

Give us some code to glean through and we can provide a bit more help.
Oct 2 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.