More about ... Just Fitting One Curve?You are correct that the final character in the definition should be a semicolon. The definition in my example should read:
y=a*x+b*x^2;
z=a+b*x;
With this correction, the example should work in both Origin 4.1 and Origin 5.0.
There is a general problem in drawing additional Independent and Dependent datasets. Thus, while the first Dependent dataset is drawn correctly in the example, the second is drawn incorrectly although the parameters are still correct.
To get the correct display, you need to modify the fitted dataset:
Origin 4.1
1.Double-Click on the second fitted line (the horizontal line in our example). 2.Click the Worksheet button 3.Highlight the B(Y) column and select Column:Set Column Values from the menu 4.Enter a+b*col(A) as the formula and click Do It
The correct values of a and b will used to calculate a+b*x and the plot will update
Origin 5.0
1.Double-Click on the second fitted line (the horizontal line in our example). 2.Click the Worksheet button 3.Right-Click on the B1(Y2) column in the NLSF worksheet and select Set Column Values from the context menu 4.Enter a+b*col(A1) as the formula and click Do It
The correct values of a and b will used to calculate a+b*x and the plot will update A similar drawing problem occurs when fitting with multiple Independent variables. The second (third, etc.) dataset must be updated with the correct equation.