Link to home
Start Free TrialLog in
Avatar of Cynthia Joubi
Cynthia Joubi

asked on

Root finding program Newton's Method?

I need help writing a root finding problem using Newton's Method for the following equation:
y = sin(x) − 0.15x + 1.5
I want to use a tolerance of 1.0e-4 and double precision to find all roots (5 total) of the equation.

I would like some assistance on how to go about writing the derivative function to better understand the main program too. Any help is appreciated.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of BigRat
BigRat
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cynthia Joubi
Cynthia Joubi

ASKER

Thank you BigRat for the information! It really helped me and I think I got a working code.
Much appreciated.