Finding Multiple Roots of Equations

AI Thread Summary
The discussion focuses on finding multiple roots of equations using various numerical methods, specifically the bisection method, Newton-Raphson method, and secant method. The poster has successfully implemented these methods but struggles to find all roots without hard coding different intervals. They mention Horner's algorithm as a potential solution for finding all roots once one is known, but seek a logical explanation rather than code examples. The challenge lies in understanding how to apply Horner's algorithm for this purpose. Overall, the thread highlights the need for clearer guidance on efficiently finding multiple roots of equations.
trouty323
Messages
23
Reaction score
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!
 
Physics news on Phys.org
Hobbits over in the maths sub-forum might enjoy this.
 

Similar threads

Back
Top