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 complex modulus
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LingC

USA
1 Posts

Posted - 09/16/2012 :  8:22:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
I need to fit my data with the modulus of a complex function. I tried to
use the "Imabs" command but the resulting curve do not with the simulation. I wonder if there is the correct way to define a function of modulus of a complex function. The following is what I have as a defined function,
y=Imabs((-1i*a2*v+a1*(1i*g2*x-x^2+w2^2))/(v^2+(-1i*g1*x+x^2-w1^2)*(-1i*g2*x+x^2-w2^2)))+C

Here a1,a2,w1,w2,g1,g2,v,C are fitting parameters.

cc261

22 Posts

Posted - 09/19/2012 :  02:25:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Have a look and try a software named 1stOpt or Auto2Fit, do complex function fit perfectly, and easy too.
Go to Top of Page

Sam Fang

293 Posts

Posted - 09/20/2012 :  04:13:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Imabs is a LabTalk function in Origin8.6, not an OriginC function.

If you want to use it in OriginC function form, you need declare it first outside the function body in Code Builder dialog. e.g.

-------------------------------------

double Imabs(complex cX);

-------------------------------------

Sam
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