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 with user defined function (nat. logs)

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
99originProblems Posted - 02/26/2014 : 6:45:42 PM
I can't get my user defined function to work.
I linearized a rising exponential function
V=V0(1-e^(-t/T1))
to get
ln(1-(V/V0))=-(t/T1)

I have data from V and t in Origin.

ind. variables: t
dep. variable: V
parameters: V0, T1
Function: ln(1-(V/V0))=-(t/T1)

What am I doing wrong?
1   L A T E S T    R E P L I E S    (Newest First)
Kathy_Wang Posted - 02/27/2014 : 03:14:25 AM
Hi,

The function ln(1-(V/V0))=-(t/T1) is an implicit function, so it must be created as an implicit function (i.e. Function Model set to Implicit) and also you need to use the Orthogonal Distance Regression iteration algorithm. You may refer to this tutorial to learn how to carry out implicit fit (Requires OriginPro 9.0 or above).

However, you could actually directly carry out nonlinear curve fit with the exponential function V=V0(1-e^(-t/T1)), in that case you may refer to this tutorial.

In addition, if you actually want to carry out linear fit for your data, you might need to first calculate the value of ln(1-(V/V0)) from V and use this as the dependent variable for linear fit. You may use the Set Column Values tool to calculate the new dependent variable, you could also refer to this tutorial to see how to set column values using another column.

Kathy
Originlab

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