NewtonRaphsonSolver Constructor

Definition

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

Overload List

NewtonRaphsonSolver

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

NewtonRaphsonSolver(Func<Double, Double>, Func<Double, Double>, Double)

Constructs a new NewtonRaphsonSolver object.
C#
public NewtonRaphsonSolver(
	Func<double, double> targetFunction,
	Func<double, double> derivativeOfTargetFunction,
	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.
x0  Double
The initial guess for the root.

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

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

Parameters

targetFunctionWithDerivative  Func<Double, ValueTuple<Double, Double>>
A delegate that returns a function of one variable that specifies the target function, and its derivative.
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.

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

Constructs a new NewtonRaphsonSolver object.
C#
public NewtonRaphsonSolver(
	Func<double, double> targetFunction,
	Func<double, double> derivativeOfTargetFunction,
	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.
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