HalleySolver Constructor

Definition

Namespace: Numerics.NET.EquationSolvers
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

HalleySolver

Constructs a new HalleySolver object.
C#
public HalleySolver()

HalleySolver(Func<Double, Double>, Func<Double, Double>, Func<Double, Double>, Double)

Constructs a new HalleySolver object.
C#
public HalleySolver(
	Func<double, double> targetFunction,
	Func<double, double> derivativeOfTargetFunction,
	Func<double, double> secondDerivativeOfTargetFunction,
	double x0
)

Parameters

targetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the target function.
derivativeOfTargetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the derivative of the target function.
secondDerivativeOfTargetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the second derivative of the target function.
x0  Double
The initial guess for the root.

HalleySolver(Func<Double, ValueTuple<Double, Double, Double>>, Double, ConvergenceCriterion, Double)

Constructs a new HalleySolver object.
C#
public HalleySolver(
	Func<double, (double , double , double )> targetFunctionWithDerivatives,
	double x0,
	ConvergenceCriterion convergenceCriterion,
	double tolerance
)

Parameters

targetFunctionWithDerivatives  Func<Double, ValueTuple<Double, Double, Double>>
A delegate that represents a function of one variable and returns the function's value, first derivative, and second derivative at a point.
x0  Double
The initial guess for the root.
convergenceCriterion  ConvergenceCriterion
One of the ConvergenceCriterion values that specifies the criterion that is to be used in the convergence test for the algorithm.
tolerance  Double
The tolerance to use when approximating the roots of the target function.

HalleySolver(Func<Double, Double>, Func<Double, Double>, Func<Double, Double>, Double, ConvergenceCriterion, Double)

Constructs a new HalleySolver object.
C#
public HalleySolver(
	Func<double, double> targetFunction,
	Func<double, double> derivativeOfTargetFunction,
	Func<double, double> secondDerivativeOfTargetFunction,
	double x0,
	ConvergenceCriterion convergenceCriterion,
	double tolerance
)

Parameters

targetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the target function.
derivativeOfTargetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the derivative of the target function.
secondDerivativeOfTargetFunction  Func<Double, Double>
A delegate that represents a function of one variable delegate that specifies the second derivative of the target function.
x0  Double
The initial guess for the root.
convergenceCriterion  ConvergenceCriterion
One of the ConvergenceCriterion values that specifies the criterion that is to be used in the convergence test for the algorithm.
tolerance  Double
The tolerance to use when approximating the roots of the target function.

Exceptions

ArgumentOutOfRangeException

The tolerance is less than zero.

See Also