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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Help with user defined function (nat. logs)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

99originProblems

1 Posts

Posted - 02/26/2014 :  6:45:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

Kathy_Wang

China
159 Posts

Posted - 02/27/2014 :  03:14:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000