solveΒΆ
solve calculates the solution of a non linear system.
- rvX = solve(func, rvXStart)
Return Value
rvX is the solution vector. If an error occurred, rvX has the value
ERROR_VALUE
.
Parameters
- func
func is a function provided by the user and has the following form (see also the example):
def func(rvX) { ... return rvY; }
- rvXStart
rvXStart is an estimated solution vector.
Example
def f(x)
{
return x*x - sin(x);
}
solve(f, 1.0);
See also
id-1348686