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
 All Forums
 Origin Forum
 Origin Forum
 Fitting complex modulus

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
LingC Posted - 09/16/2012 : 8:22:52 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
Sam Fang Posted - 09/20/2012 : 04:13:18 AM
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
cc261 Posted - 09/19/2012 : 02:25:51 AM
Have a look and try a software named 1stOpt or Auto2Fit, do complex function fit perfectly, and easy too.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000