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.