Click or drag to resize

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

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

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.8.0+e1037fa8802b3ff162e26559d763b73334940b70
Syntax
C#
public static double Solve(
	Func<double, double> f,
	Func<double, double> df,
	double initialValue,
	double accuracy,
	int maxIterations
)

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
The desired accuracy.
maxIterations  Int32
Maximum number of iterations allowed.

Return Value

Double
The approximated root.
See Also