The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Non linear data fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Ricardo

So Paulo, So Paulo
3 Posts

Posted - 03/25/1999 :  3:02:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is it possible to fit data with a non linear and very large formula? The formula is of the form:
y = {Abs [L/(2*pi*f*L*i + SUM(i*2*pi*f*b(j)/(i*2*pi*f+G(j)))]}^2
Were the "i" alone is the imaginary,
j=0 to 5, the b(j)'s are constants and G(j) are the parameters to be obtained from the adjust.
Since the Origin 5.0 does not accept imaginary, I expanded this formula. When we get the square modulus, we obtain a very large expression.
Does the Origin accept it?
Thanks,
Ricardo.

rtoomey

USA
184 Posts

Posted - 03/26/1999 :  3:18:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply


Response to Non linear data fitting


Ricardo,


Although there is a limit of around 250 characters in the Definition text box, Origin's nonlinear curve fitter can conceivably handle any length fitting function by placing the equation into a text file (*.txt or *.ogs) which is saved to your Origin directory. Here's an example of what I mean:


Example


If the fitting function is:


y = a + x * b; // Note: In this case, set the Form drop-down list to Equations.


It can be put directly into the Definition text box when defining the function. The alternative, which should be applied for large equations, is to enter a line such as this into the Definition text box when defining the function:


run.section(filename.txt, myfunc); // Note: In this case, set the Form drop-down list to Y-Script.


Then, when fitting is performed, it will execute the script contained in the section myfunc of the file called filename.txt. The section should contain the actual equation in the following manner:


[myfunc]
y = a + x * b;


I hope this information proves helpful to you.


Sincerely,
Ryan Toomey



[This message has been edited by rtoomey (edited 03-26-99).]

[This message has been edited by rtoomey (edited 03-26-99).]

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000