FunctionMath.FindZero(Func<Vector<Double>, Double>[], Vector<Double>) Method

Solves a system of nonlinear equations starting from an initial guess.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<double> FindZero(
	this Func<Vector<double>, double>[] targetFunctions,
	Vector<double> initialGuess
)

Parameters

targetFunctions  Func<Vector<Double>, Double>[]
An array of delegates that represent a multivariate function that specify the left-hand sides of the equation.
initialGuess  Vector<Double>
An initial guess for the solution.

Return Value

Vector<Double>
The best approximation to a zero of targetFunctions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Vector<Double>, Double>[]. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Use this method when you have very little information about the location of the zero.

Exceptions

ConvergenceExceptionThe algorithm failed to converge to a solution.

See Also