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
 help!! Diffusion equations

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
merrick Posted - 04/01/2015 : 11:19:51 AM
I'm trying to created a new (user-defined) Non-Linear Curve Fit function to fit my experimental values based on the exchange equations by Johnson.
I simulated in excel (using solver and an approximation) and got a good agreement, however as soon as i used this simulated values in origin the fir goes completely crazy. There is no compilation error, so I assume the user-defined function is working well.
Can anyone help me?
My origin code is:
ouble pb,kb,s,l,z,Ma,Mb;
pb=1-pa;
kb=ka*pa/(1-pa);
s=0,5*(ka+kb+Da*x+Db*x);
l=0,5*(ka-kb+Da*x-Db*x);
z=sqrt((l^2)+ka*kb);
Ma=(0,5*pa-((l*pa-kb*pb)/(2*z)))*exp((-s+z)*T)+(0,5*pa+((l*pa-kb*pb)/(2*z)))*exp((-s-z)*T);
Mb=(0,5*pb+((l*pb-ka*pa)/(2*z)))*exp((-s+z)*T)+(0,5*pb-((l*pb-ka*pa)/(2*z)))*exp((-s-z)*T);
y=Ma+Mb

Thanks
1   L A T E S T    R E P L I E S    (Newest First)
Shirley_GZ Posted - 04/02/2015 : 06:01:21 AM
Hi,

It seems you didn’t define the parameter “ka” and “pa”. Would you please send us the FDF file (fitting function definition file) via tech@originlab.com and quote this post?

Thanks,

Originlab Technical Service Team

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