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
 Lorenztian fitting function

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
wnsibanda Posted - 10/01/2012 : 09:02:35 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

hi everybody.I have try a lot to generate a user define function for this but not gating success. If anyone knows about how to create this user-defined function in originpro 8, please help me out in this.

P = rx *(lw^2-0.5*(w3+w2)-w)^2 + 0.25*(w3-w2)^2 + lw;

Q = rx * (0.5*(w3+w2)-w-0.5*(p3-p2)*(w3-w2));

R = (0.5 *(w3+w2)-w)*(1+2*rx*lw) + 0.5*(p3-p2)*(w3-w2);

I = (1+rx*lw)*P+Q*R/(P^2+Q^2);

rx, lw, p3, p2,w3,w2 are the parameters. I(w)is the Lorenztian function.
2   L A T E S T    R E P L I E S    (Newest First)
wnsibanda Posted - 10/05/2012 : 04:25:08 AM
Hi. Thanks for your reply. I tried using Equations on the Fitting Function Organiser on OriginPro 8 SR0, but it doesnt seem to work out. I have used a simple Lorenztian equation, it works out. Is there maybe a 'trick' i can use when i have more than one dependent variable?
easwar Posted - 10/02/2012 : 4:54:32 PM
Hi,

What sort of error did you run into?

If you are using "Origin C" to define your function, you need to add the line:
double P, Q, R;
before you define P, Q, and R, as these are temporary variables you are using, that need to be declared first.

You can try the new Fitting Function Builder tool in version 8.6, which is easier to use for defining functions. For your function, you can use Equations instead of Origin C.


Easwar
OriginLab

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