ALGORITHM FOR NEWTON RAPHSON METHOD
- Start
- Read the values of x0,e,delta,n;
Where x0 is initial approximation, e is error
allowed. delta is the slope and n is
maximum number of iteration.
- for i=1 to n,
- if | f(x0 )|<delta,
then goto 9
- x1= x0 –[f (x0 )/f (x0 )]
- if |( x0 – x1)/ x0 | <e, then goto 11
- write “Solution does not converge in n
iteration”.
- Stop
- Write “Slope is too small”.
- Stop
- Write ”Convergent solution is x”.
- Stop
No comments:
Post a Comment