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
 Fitting of data with custom expression, HELP!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

FrederikBojsen

Denmark
2 Posts

Posted - 01/09/2019 :  10:03:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi people,

I need help fitting some data, but I'm unsure how to make it work properly

The function is y = yO*exp(Integral(a(x)),
where a(x) = a0 + a1*x + a2*x^-2

What I did:

Used 'fitting function builder' - model (explicit), expression type (expression) + include integration during fitting

Integrand name: Myint
Integration variable: x
arguments: a0, a1, a2 (Another question -> what is function double?)

return a0 + a1*x + a2*x^-2


Variables and Parameters:

independent variables: x
dependent variables: y
parameters: a0,a1,a2 (is this wrong? Both having a0, a1 and a2 as parameters and arguments?)
constants: y0

y0*exp(integral(Myint, 0 ,850 , , ,))

My checks of the function just says - incorrect number of arguments passed to function..

I know that a0 is around 10^-4, a1 is around 10^-8, while a2 is zero or below (have no idea how to limit this parameter to be below zero)

Need help evidently :(



YimingChen

1607 Posts

Posted - 01/09/2019 :  11:48:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please check this tutorial page:
https://www.originlab.com/doc/Tutorials/Fitting-Integral-LabTalk

Thanks,
James
Go to Top of Page

FrederikBojsen

Denmark
2 Posts

Posted - 01/10/2019 :  03:56:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I got it to work!

Thank you very much :)
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