Gravity Engine 12.0
Unity Asset for Gravity
|
Secant root find method. More...
Public Member Functions | |
delegate double | Function (double x) |
Static Public Member Functions | |
static double | Secant (Function f, double x0, double x1, int kmax=200, double tol=1E-8) |
Secant root finder. | |
Secant root find method.
Implementation based on Code 5.3 from Gezerlis (2020) "Numerical Methods in Physics with Python"
|
static |
Secant root finder.
f | Function to find root of (delegate) |
x0 | An point on the function |
x1 | A second point on the function (near x0) |
kmax | Max iterations |
tol | Tolerance for solution |