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
 Fitting only with imaginary coefficient
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rainbowkoala

29 Posts

Posted - 03/29/2014 :  04:05:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.5.0 SR1
Operating System: win7
Hello,
I hope you can help me with the following problem:
The equation is given as follows.
y = y1 + i * y2 = A/[ 1 + (ixt)^a ]
I only have :
colA = x (independent variable)
ColB = y2 (dependent variable)

If I have ColC = y1 (dependent variable), I could fit the data with the complex function. But this one is beyond my capability.
Any help.....?

Thanks for your help.

SeanMao

China
288 Posts

Posted - 03/31/2014 :  06:08:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
It is possible if all the fitting parameters are independent.
We can use Non-Linear fiting (NLfit) tool to fit only the imaginary part to obtain parameter A, t, a. To do that, first you need to create a new fitting function in the “Fitting Function Builder” dialog. Select “Tools:Fitting Function Builder” menu and the dialog box will be brought up. Please follow these steps to define the fitting function:
1. Click “Next” to create a new function.
2. Input function name and choose “Function Type” as Origin C. Click “Next”.
3. Input Independent Variables as “x”, Dependent Variables as “y”, Prameter names as “A0,t,a”. Click “Next”.
4. Paste the following codes into “Function Body” box:
complex f=A0/(1+(1i*x*t)^a);
y=f.m_im;
To make sure our define function is correct, you have to click on the Origin C editor icon on the top right corner of “Function Body” box to compile it. Click on the “Compile” and close “Code Builder” dialog.
Click “Finish” to save the fitting function and close the dialog.
Then you can use the defined fitting function to do non-linear fitting.,
Select “Analysis:Fitting:Nonlinear Curve Fit:Open dialog” menu to bring up the NLFit dialog box. In the “Function Selection” part, choose “User Defined” in “Category” drop-down list, and choose the function you defined under“Function” list as shown in figure below:


More details about NLfit tool can be found through the link below:
http://www.originlab.com/doc/Tutorials/Fitting-NLFit-Basic
Regards!
Sean
OriginLab Technical Services
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