Newton Raphson method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thiofdelux
    New Member
    • Oct 2008
    • 1

    Newton Raphson method

    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
  • boxfish
    Recognized Expert Contributor
    • Mar 2008
    • 469

    #2
    Can you please post some of the code you have so far, and the problems you are having with it?

    Comment

    • archonmagnus
      New Member
      • Jun 2007
      • 113

      #3
      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.

      Comment

      Working...