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
 non-linear fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lshy1204

2 Posts

Posted - 05/18/2010 :  11:29:45 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
Hi
I encountered a problem in non-linear fitting:when I begin my fitting, it showed "Unable to compile user defined function".
I have tried several times,but it doesn't work.
My fitting function and data are as follows,
y=1/(1/b(exp(b*a(1/x-1/440))-1)+1)
x y
288.15 2.48551E-6
293.15 2.87928E-6
298.15 3.02979E-6
303.15 9.12039E-6
308.15 2.33113E-5
Could you help me?I am eagerly ti know how to do.Thanks!!

Sam Fang

293 Posts

Posted - 05/19/2010 :  04:10:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There are two errors in your expression.
1. Multiplication signs "*" can't be omitted in OriginC's expressions. There are two signs missing in your formula.
2. Integer divided by an integer equals to an integer in OriginC. Therefore 1/440 will be zero. You should change it to 1.0/440 .

For example, you can change your formula as follows.
y = 1.0/( 1.0/b*( exp( b*a*(1.0/x - 1.0/440) )-1 ) + 1 );

You may check whether the two added signs are what you want.

Using initial values a = 100, b = 100 for fitting, you can get a good fitting result.

Sam
OriginLab Technical Services

Edited by - Sam Fang on 05/19/2010 06:00:09 AM
Go to Top of Page

lshy1204

2 Posts

Posted - 05/19/2010 :  08:04:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your early reply,now I have solved the problem!Thanks again!!!
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