Calc.FindZerosOfFunction Method

Numerically searches for zeroes of a given functions.
public static int FindZerosOfFunction( 
   double[] root
   object userdata
   long maxiter
   double epsr
   double epsf
   double epsmr
   double mrspr 
)

Parameters

func
NumericFunctionDelegate

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

int

The number of roots found.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition