Calc.FindZerosOfFunction Method
Public Shared Function FindZerosOfFunction( _
ByVal func As NumericFunctionDelegate, _
ByVal root As Double(), _
ByVal userdata As Object, _
ByVal maxiter As Long, _
ByVal epsr As Double, _
ByVal epsf As Double, _
ByVal epsmr As Double, _
ByVal mrspr As Double _
) As Integer
This language is not supported or no code example is available.
Parameters
The function whose roots are to be found.
- root
- double[]
An array that will contain the roots found. Each entry of this array that contains another number than 0.0 is seen as an initial guess for the solution. The length of this array decides the maximum number of roots found.
- userdata
- object
Any data sent back to the callback function.
- maxiter
- long
Maximum number of iterations. Don't choose this number to large if speed is crucial.
- epsr
- double
Relative convergence criterion on successive iterations.
- epsf
- double
Absolute convergence criterion on the function values.
- epsmr
- double
Closeness of multiple roots (see mrspr).
- mrspr
- double
The spread for multiple roots, that is, if |rt - root[i]| is less tan epsmr, where root[i] is a previously found root, then rt is replaced by rt + mrspr.
Return Value
intThe number of roots found.