Code adapted from numphyspy.org by Alex Gezerlis and the book "Numerical Methods in Physics with Python" by Cambrudge University Press
More...
|
delegate double | Function (double x) |
|
|
static double [] | BackSub (double[,] U, double[] bs) |
|
static double [] | GaussElimPivot (double[,] inA, double[] inBs) |
|
static double | Secant (Function f, double x0, double x1, int kmax=200, double tol=1E-8) |
| Secant root finder. More...
|
|
Code adapted from numphyspy.org by Alex Gezerlis and the book "Numerical Methods in Physics with Python" by Cambrudge University Press
◆ Secant()
static double NumericalTools.NumPhysPy.Secant |
( |
Function |
f, |
|
|
double |
x0, |
|
|
double |
x1, |
|
|
int |
kmax = 200 , |
|
|
double |
tol = 1E-8 |
|
) |
| |
|
inlinestatic |
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:
- DE Solver/Assets/NumericalTools/NMPPBased/Scripts/NumPhysPy.cs