Finding Multiple Roots of Equations

  • Thread starter trouty323
  • Start date
  • #1
24
0

Homework Statement



Hello everyone. My task is to find the largest positive root in a specific interval of a function using the bisection method, Newton-Raphson method, and secant method. I've written code for all three of these methods, but the only way I can find all of the roots is to hard code different intervals. I know that is horrible practice, but the teacher never explained how to find them all using a different approach. However, I did read online that it can be done using Horner's algorithm (synthetic division). Basically, from my understanding, all of the roots can be found if one root is known. However, I could not find examples of code using Horner's algorithm specific to my purpose. I'm not asking for code, but a logical explanation as to how this can be accomplished. Thanks in advance!
 

Answers and Replies

  • #2
NascentOxygen
Staff Emeritus
Science Advisor
9,244
1,073
Hobbits over in the maths sub-forum might enjoy this.
 

Related Threads on Finding Multiple Roots of Equations

  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
1
Views
5K
Replies
1
Views
9K
Replies
1
Views
837
Replies
9
Views
2K
Replies
1
Views
2K
Replies
6
Views
7K
Replies
3
Views
6K
Replies
1
Views
323
Top