Click or drag to resize

BroydenFindRoot Method

Find a solution of the equation f(x)=0.

Namespace: Altaxo.Calc.RootFinding
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double[] FindRoot(
	Func<double[], double[]> f,
	double[] initialGuess,
	double accuracy = 1E-08,
	int maxIterations = 100,
	double jacobianStepSize = 0,0001
)

Parameters

f  FuncDouble, Double
The function to find roots from.
initialGuess  Double
Initial guess of the root.
accuracy  Double  (Optional)
Desired accuracy. The root will be refined until the accuracy or the maximum number of iterations is reached. Default 1e-8. Must be greater than 0.
maxIterations  Int32  (Optional)
Maximum number of iterations. Default 100.
jacobianStepSize  Double  (Optional)
Relative step size for calculating the Jacobian matrix at first step. Default 1.0e-4

Return Value

Double
Returns the root with the specified accuracy.
Exceptions
ExceptionCondition
NonConvergenceException
See Also