Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
mahajan
Posted - 05/09/2021 : 07:37:05 AM Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2019b (64-bit) 9.6.5.169 (Academic)
Operating System:Windows 10
Hi
I want to make a user defined function for fitting some data. The function contains variables which are defined by other equations. See below.. y is the dependent variable and T is the independent variable. J, a, g are fitting parameters. I tried to use the function form as origin C but it did not compile (I am not sure how to define the intermediate variables N1, N2 etc.). If I used the function form as Equations then it seemed to work...it could calculate the value of y for a sample value of T. But in this case, I can not simulate the curve (that option seems grayed out). Kindly let me know how to build the fitting function so that I can simulate the curve for various choice of parameters.
Posted - 05/10/2021 : 09:09:09 AM You will need to follow OriginC language syntax: 1. For intermediate variable, you need to specify the variable type. 2. End each line with semicolon.