[General Information]

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


[Fitting Parameters]

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

[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


[Formula]

y = x/(a + b*x + c*sqrt(x))

[Constraints]


[Parameters Initialization]
sort(x_y_curve);
smooth(x_y_curve);
b=1/max(y_data);
double y1=min(y_data)*3/4 + max(y_data)/4;
if(y1==0) y1=min(y_data)*3/5 + max(y_data)*2/5;
double x1=Curve_xfromY(&x_y_curve,y1);
double y2=min(y_data)/4 + max(y_data)*3/4;
if(y2==0) y2=min(y_data)*2/5 + max(y_data)*3/5;
double x2=Curve_xfromY(&x_y_curve,y2);

c=(x2/y2-x1/y1+b*x1-b*x2)/(sqrt(x2)-sqrt(x1));
a=x1/y1-b*x1-sqrt(x1);

[Initializations]


[After fitting]


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

