rootScalar
rootScalar(
f,options?):any
Defined in: scalar.js:565
Find a root of a univariate function inside a sign-changing bracket.
Parameters
f
Function
Function: (x: number) => number
options?
bracket
number[]
[a, b] with f(a) and f(b) of opposite signs (required)
maxIter?
number
Maximum iterations
method?
string
‘brent’ or ‘bisect’
rTol?
number
Relative tolerance on x
xTol?
number
Absolute tolerance on x
Returns
any
{x, fx, iterations, fevals, converged}