SolverSolve(FuncDouble, Double, FuncDouble, Double, Double, Double) Method

Performs a Newton-Raphson iteration to find a root of f(x) = 0.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+d1268756e036101f601080f153b3997e72fc912d
C#
public static double Solve(
	Func<double, double> f,
	Func<double, double> df,
	double initialValue,
	double accuracy = 1E-09
)

Parameters

f  FuncDouble, Double
The function to find its root.
df  FuncDouble, Double
The derivative of the function.
initialValue  Double
The initial estimate for iteration.
accuracy  Double  (Optional)
The desired accuracy.

Return Value

Double
The approximated root.

See Also