IMSL C# Numerical Library

ZeroSystem.Solve Method 

Solve a system of nonlinear equations using the Levenberg-Marquardt algorithm.

public double[] Solve(
   IFunction f
);

Parameters

f
Defines a ZeroSystem.IFunction whose zero is to be found. If f implements a ZeroSystem.IJacobian then its Jacobian is used. Otherwise finite difference is used.

Return Value

A double array containing the solution.

Exceptions

Exception Type Condition
TooManyIterationsException is thrown if the maximum number of iterations is exceeded
ToleranceTooSmallException is thrown if the error tolerance is too small
DidNotConvergeException is thrown if the algorithm does not converge

See Also

ZeroSystem Class | Imsl.Math Namespace | ZeroSystem.IJacobian