You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maths/numerical_analysis/brents_method.py
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@
3
3
4
4
Find a root of a function in a bracketing interval using Brent's method.
5
5
6
-
Brent's method combines bisection, secant, and inverse quadratic interpolation to efficiently and robustly find a root of a continuous function. It is guaranteed to converge as long as the root is bracketed.
6
+
Brent's method combines bisection, secant, and inverse quadratic interpolation
7
+
to efficiently and robustly find a root of a continuous function. It is
8
+
guaranteed to converge as long as the root is bracketed.
7
9
8
10
See:
9
11
https://en.wikipedia.org/wiki/Brent%27s_method
@@ -37,11 +39,11 @@ def brent_method(
37
39
ValueError: If the root is not bracketed in [lower_bound, upper_bound].
0 commit comments