Concept Flow - Root finding (root, brentq)
Define function f(x)
Choose interval or initial guess
Call root finding method
Iterative search for root
Check if f(root) approx 0
Yes No
Return root
We start with a function and an initial guess or interval. The root finding method iteratively searches for a point where the function value is zero, adjusting guesses until it finds the root.