FunctionMath.FindZero(Func<Vector<Double>, Vector<Double>, Vector<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>, Vector<double>, Vector<double>> targetFunction,
	Vector<double> initialGuess
)

Parameters

targetFunction  Func<Vector<Double>, Vector<Double>, Vector<Double>>
A delegate that represents a multivariate function returning a vector in its second argument that calculates 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 targetFunction.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Vector<Double>, Vector<Double>, Vector<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