Question

hay i am trying to find the algorithm of the newton- raphson method to solve a...

hay i am trying to find the algorithm of the newton- raphson method to solve a 3rd degree equation in visual basic

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please comment below, If you find any difficulty in understanding

Please Upvote, If you are impressed with the answer

Algorithm :

  1. Start
  2. Read x, e, n, d
    *x is the initial guess
    e is the absolute error i.e the desired degree of accuracy
    n is for operating loop
    d is for checking slope*
  3. Do for i =1 to n in step of 2
  4. f = f(x)
  5. f1 = f'(x)
  6. If ( [f1] < d), then display too small slope and goto 11.
    *[ ] is used as modulus sign*
  7. x1 = x – f/f1
  8. If ( [(x1 – x)/x1] < e ), the display the root as x1 and goto 11.
    *[ ] is used as modulus sign*
  9. x = x1 and end loop
  10. Display method does not converge due to oscillation.
  11. Stop

The above algorithm can be applicable for newton raphson method in any degree of polynomial in any high level programming language such as Visual Basic

Add a comment
Know the answer?
Add Answer to:
hay i am trying to find the algorithm of the newton- raphson method to solve a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT