Function Math.Get Equation Solver(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#
The best approximation to a zero of targetFunction.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
EquationSystemSolverThe best approximation to a zero of targetFunction.