NewtonRaphsonSolver<T> Constructor

Definition

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

Overload List

NewtonRaphsonSolver<T>

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

NewtonRaphsonSolver<T>(Func<T, T>, Func<T, T>, T)

Constructs a new NewtonRaphsonSolver object.
C#
public NewtonRaphsonSolver(
	Func<T, T> targetFunction,
	Func<T, T> derivativeOfTargetFunction,
	T x0
)

Parameters

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

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

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

Parameters

targetFunction  Func<T, T>
A delegate that represents a function of one variable delegate that specifies the target function.
derivativeOfTargetFunction  Func<T, T>
A delegate that represents a function of one variable delegate that specifies the derivative of the target function.
x0  T
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  T
The tolerance to use when approximating the roots of the target function.

Exceptions

ArgumentOutOfRangeException The tolerance is less than zero.

See Also