Secant root find method.
More...
|
|
delegate double | Function (double x) |
| |
|
| 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"
◆ Secant()
| static double GravityEngine2.SecantRootFind_GE2.Secant |
( |
Function | f, |
|
|
double | x0, |
|
|
double | x1, |
|
|
int | kmax = 200, |
|
|
double | tol = 1E-8 ) |
|
static |
Secant root finder.
- Parameters
-
| 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 |
- Returns
The documentation for this class was generated from the following file:
- ge2/GE2/Assets/GravityEngine2/Runtime/Math/SecantRootFind_GE2.cs