Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
SecantRootFind Class Reference

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.
 

Detailed Description

Secant root find method.

Implementation based on Code 5.3 from Gezerlis (2020) "Numerical Methods in Physics with Python"

Member Function Documentation

◆ Secant()

static double SecantRootFind.Secant ( Function  f,
double  x0,
double  x1,
int  kmax = 200,
double  tol = 1E-8 
)
static

Secant root finder.

Parameters
fFunction to find root of (delegate)
x0An point on the function
x1A second point on the function (near x0)
kmaxMax iterations
tolTolerance for solution
Returns

The documentation for this class was generated from the following file: