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
 User defined 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
Naeiji Posted - 05/25/2012 : 10:48:34 AM
Hi

I am having trouble trying to fit a specific function to my data points. The equation that I want to fit is

y/(1-y)*exp(2*a*y) = (b*x)^(1/v)

It seems like a combination of exponential and Langmuir to me, but I am having trouble trying to simplify it. How should I set up the function body in the user defined function? Many thanks.
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 05/25/2012 : 11:54:48 AM
Hi Naeiji,

Your formula is of an implicit function, which Origin currently doesn't support for fitting. For now, possible work-arounds (practically, but NOT theoretically to give you the sense of parameter values) may be the following either way:

1) You can rewrite your function as X as dependent, and Y as independent. Thus,
  x = (y/(1-y)*exp(2*a*y))^v/b
(Of course, the parameters would minimize the Chi^2 on X, instead of Y.)

2) Define a function:
  Z=y/(1-y)*exp(2*a*y)-(b*x)^(1/v)
and add an extra dataset for Z as the dependent variable which have all zeros(0) corresponding your (x, y) values (as independent).

Hope this helps.

--Hideo Fujii
OriginLab


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