Newton Raphson Method

Newton Raphson Method :

ALGORITHM : 

  1. [START]
  2. Input the variables x0, n for the task
  3. Input Epsilon & delta
  4. for i = 1 and repeat if i <= n
  5. f0 = f(x0)
  6. df0 = df(x1)
  7. if |df0| <= delta
    Print Slope too small
    Print x0, f0, df0, i
    [end of program]
  8. x1 = x0-(f0/df0)
  9. if |(x1-x0)/x1| <epsilon
    Print convergent
    Print x1, f(x1), i
    [end of program]
  10.  x0 = x1
  11. [end of for loop]
C SOURCE CODE :

OUTPUT:

newton raphson method




Leave a Reply

Your email address will not be published. Required fields are marked *