Let Xo be an approximate value of the root of the equation f(X)=0 either algebraic or transcendental and let h be a real number sufficiently small.
This is known as the Newton – Raphson formula or Newton’s iteration formula.
Write a program to demonstrate the application of the Newton-Raphson method to find the root of the equation.?
C PROGRAM TO LOCATE THE ROOT OF AN EQUATION USING NEWTON RAPHSON METHOD
C GIVEN EQUATION
C DERIVATIVE OF THE GIVEN EQUATION
WRITE(*,*)' ENTER YOUR ESTIMATE OF ROOT...'
C FIND ROOT POSITION
C EXIT LOOP IF ROOT FOUND
C EXIT LOOP IF UNABLE TO FIND ROOT EVEN AFTER 100+CYCLES
C START NEXT CYCLE
100 WRITE(*,*)'ROOT FOUND AT', X
200 WRITE(*,*)'ROOT NOT FOUND'
ENTER YOUR ESTIMATE OF THE ROOT
ROOT FOUND AT 1.3247180