FunctionMath.GetEquationSolver(Func<Vector<Double>, Vector<Double>, Vector<Double>>, Func<Vector<Double>, Matrix<Double>, Matrix<Double>>, Vector<Double>) Method

Finds a zero of a function starting from an initial guess.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static EquationSystemSolver GetEquationSolver(
	this Func<Vector<double>, Vector<double>, Vector<double>> targetFunction,
	Func<Vector<double>, Matrix<double>, Matrix<double>> jacobianFunction,
	Vector<double> initialGuess
)

Parameters

targetFunction  Func<Vector<Double>, Vector<Double>, Vector<Double>>
A delegate that represents a multivariate function returning a vector that computes the values on the left-hand side of the equations.
jacobianFunction  Func<Vector<Double>, Matrix<Double>, Matrix<Double>>
A delegate that represents a multivariate function returning a matrix in its second argument that computes the Jacobian of targetFunction.
initialGuess  Vector<Double>
An initial guess for the solution.

Return Value

EquationSystemSolver
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).

See Also