[General Information]

Function Name=Langevin 	
Brief Description=Langevin function  
Function Type=Built-in		
Function Form=Equations	
Function Source=fgroup.Langevin
Number Of Parameters=3
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]                        

Naming Method=user-defined
Names=y0,xc,C
Meanings=offset,Center,Amplitude
Lower bounds=0.0(X,ON),--,--,0.0(X,ON)
Upper bounds=--,--,--,--
Meanings=

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]
// y = y0 + C * ( coth(x-xc) - 1/(x-xc) );
double z = x-xc;
double cothz = cosh(z)/sinh(z);
y = y0 + C * ( cothz - 1/z );

[Constraints]


[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
y0 = y50(x_y_curve);
xc = xaty50(x_y_curve);
C = max( y_data ) - y0;


[Initializations]

[After fitting]

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