Tuesday, August 2, 2016

ALGORITHM FOR NEWTON RAPHSON METHOD

ALGORITHM FOR NEWTON RAPHSON METHOD


  1.    Start
  2.    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.
 
  1.    for i=1 to n,
  2.    if | f(x0 )|<delta,
   then goto 9
  1.    x1= x0 –[f (x0  )/f (x0 )]
  2.    if |( x0 – x1)/ x0 | <e, then goto 11
  3.    write “Solution does not converge in n
          iteration”.

  1.    Stop
  2.    Write “Slope is too small”.
  3. Stop
  4. Write ”Convergent solution is x”.
  5. Stop

No comments:

Post a Comment