[General Information]

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


[Fitting Parameters]                        

Naming Method=user-defined
Names=a0,a1,a2,a3,a4,a5,a6,a7,a8,a9
Lower bounds=--,--,--,--,--,--,--,--,--,--
Upper bounds=--,--,--,--,--,--,--,--,--,--
Meanings=coefficients

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]
y = a0+a1*x+a2*x^2+...+a9*x^9

[Constraints]


[Parameters Initialization]
sort( x_y_curve );
smooth( x_y_curve );
double coeff[10];
fitpoly( x_y_curve, 9, coeff);  
a0 = coeff[0];
a1 = coeff[1];
a2 = coeff[2];
a3 = coeff[3];
a4 = coeff[4];
a5 = coeff[5];
a6 = coeff[6];
a7 = coeff[7];
a8 = coeff[8];
a9 = coeff[9];

[Initializations]

[After fitting]

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

