Origin's NLSF fitter used to be LabTalk based. In LabTalk, variables are created on first use. After Origin 7, NLSF can be used with Origin C compiler, and for C, all variables must be declared, so you will need to do
double A,B;
A = k*x + c;
B = sin(x^2) + p/x;
y = A/B;
if you want to compile the equations in Origin C.
CP
Edited by - cpyang on 11/14/2002 10:28:56 AM