Calc.FindZerosOfFunction Method

Numerically searches for zeroes of a given functions.
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.
public static int FindZerosOfFunction( 
NumericFunctionDelegate func
double[] root
object userdata
long maxiter
double epsr
double epsf
double epsmr
double mrspr 
)
This language is not supported or no code example is available.
public:  
static int FindZerosOfFunction( 
NumericFunctionDelegate^ func
array< double >^ root
object^ userdata
long maxiter
double epsr
double epsf
double epsmr
double mrspr 
)
This language is not supported or no code example is available.
public static function FindZerosOfFunction( 
func : NumericFunctionDelegate
root : double[], 
userdata : object
maxiter : long
epsr : double
epsf : double
epsmr : double
mrspr : double 
) : int;
This language is not supported or no code example is available.

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