Author |
Topic |
|
wnsibanda
South Africa
2 Posts |
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. |
|
easwar
USA
1964 Posts |
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 |
|
|
wnsibanda
South Africa
2 Posts |
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? |
|
|
|
Topic |
|
|
|