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 for Programming
 Forum for Origin C
 Tow phase Exponential 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
ahamer Posted - 08/18/2014 : 11:40:22 AM
Origin Ver. and Service Release (Select Help-->About Origin): 9.1
Operating System: win 7 32
Hello could anyone help me please modifying the built-in function in originlab:

Equation: ExpAssoc
y=y_0+A_1(1-e^{-x/t_1})+A_2(1-e^{-x/t_2})

Data:
I have two columns Time(x) vs Work_of_adhesion(y)

Model

y=y_0+A_1(1-e^{-x/t_1})+A_2(1-e^{-x/t_2})


y0 is the y value when x (time) is zero.

I need also more parameters in the output report (table) which are K_fast, K_slow, Hf and Hs

K_fast=1/t_1
K_slow=1/t_2
K_fast should be > K_slow

Half-time_fast(Hf): Hf=ln(2)/K_fast
Half-time_slow (Hs): Hs=ln(2)/K_slow
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 08/19/2014 : 09:48:54 AM
Several points:
1. Math operators can never be implied, so
A_1(1 ...
must be A_1*(1 ...
2. We only support parentheses so replace { and }
3. We do not recommend using "_" in variable names
4. There is no "e" defined in Origin

Here is the equation:
y=y0+A1*(1-exp(-x/t1))+A2*(1-exp(-x/t2))

Also, derived parameters cannot be defined using other derived parameters. This just requires some substitution:
Kfast = 1/t1;
Kslow = 1/t2;
Hf = t1*ln(2);
Hs = t2*ln(2);

Finally, you cannot use derived parameters as constraints so you cannot say
Kfast > Kslow
but you could say
t2>t1

Your function is over-parameterized (two of its terms are essentially identical) and as such, which term is 'fast' and which term is 'slow' is completely arbitrary, or forced to be one or the other by some constraint. While the constraint of t2>t1 will ensure the 'correctness' of fast vs slow, it is unlikely to differentiate the two terms sufficiently to produce the best fit. You will probably need to provide some additional bounds on your parameters or even fix some (at least during the fit).

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