Origin Ver. 8 and SR (Select Help-->About Origin): Operating System: xp
Hi, I'm trying to fit a curve with two Voigt functions. I've tried copying the built in Voigt function into a user function but it doesn't compile. Can anyone offer some help.
Compared to the user-defined functions, the Built-in functions in Origin 8 are using a different mechanism. So we suggest you to use the fitting function directly or if you want to access the built-in function in other function, you may follow the instructions below:
If you look into the function defination, you can see there is a "integ", which means integration here. However, "integ" is not a built-in function, and that's why you failed to compile it if you just copy+paste the function body.
Fitting with integration is somewhat complicated for user defined functions. Maybe you can read this first.