Root finding

Applies to: general, python, fortran

Root finding solves f(x) = 0, often for equations that cannot be rearranged directly.

root = brentq(f, a, b)

See also: newton-method