nonlinfit

Returns a vector of fitted points according to the equation specified.

Syntax

nonlinfit(x1, [x2, x3, …, xn,], y, c, "equation", [, flag])

Argument

xi
The ith input vector.
y
The output vector.
c
The initial condition vector.
"equation"
The equation that is to be fit. Must be in double quotes.
flag
Specifies whether fitted values or c values are returned.
If 1, fitted values are returned.
If not 1, c values are returned.
This argument is optional.

Example

Curve Math Vector
nonlinfit(x1, x2, y, {0, 0, 0}, "c1+c2*x1+c3*x2")

Comments

"equation" must be written in the following terms: y = f(xi, ci), where i is greater than or equal to 1,

If "equation" references cn where n is greater than the length of the initial condition vector, an error occurs.