[General Information]

Function Name=BoxLucas1		; name show up in the select function dialog
Brief Description=Box Lucas Model
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.BoxLucas1
Number Of Parameters=2
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]

Naming Method=user-defined
Names=a, b 
Lower bounds=--,--
Upper bounds=--,--
Meanings=coefficient, coefficient


[Independent Variables]

x =


[Dependent Variables]

y =


[Constants]


[Formula]

y = a*(1 - exp(-b*x))

[Constraints]


[Parameters Initialization]

double a1;
int sign;
b = -get_exponent(x_data, y_data, &a1, &a, &sign);
a = (a1-sign*exp(a)) / 2;


[Initializations]


[After fitting]


[Controls]
General Linear Constraints=Off
Initialization scripts=Off
Scripts After fitting=Off
