Click or drag to resize

NewtonSolverSolve(FuncDouble, Double, Double) Method

Solves a system of non-linear equations [f(x) = 0] using newton's method.

Namespace: DWSIM.MathOps.MathEx.Optimization
Assembly: DWSIM.MathOps (in DWSIM.MathOps.dll) Version: 8.8.1.0
Syntax
public double[] Solve(
	Func<double[], double[]> functionbody,
	double[] vars
)
Request Example View Source

Parameters

functionbody  FuncDouble, Double
f(x) where x is a vector of double, returns the error values for each x
vars  Double
initial values for x

Return Value

Double
vector of variables which solve the equations according to the minimum allowable error value (tolerance).
See Also