Origin Version (Select Help-->About Origin): 7.0552 (B552) Operating System: Windows XP
I am attempting to fit using the error function. The general equation that I want to fit to is: y=(1/2)*sqrt(PI)*exp(-(x^2))*erf(x) where x is the dependant variable, I
When I translate this to Origin C I type it as: y=(1/2)*sqrt(PI)*exp(-(x^2))*erf(x)
Is there a problem with the above formulism?
The data I am using has some offsets that I need to consider, The amplitude of the data (designated A) The x offset (designated xc) The y offset (designated c)
To which I modify the above formulism as: y=A*(1/2)*sqrt(PI)*exp(-((x-xc)^2))erf((x-xc))+c
Origin spits out a complaint about it, indicating that the parrameters are the problem specifically, "Error 28037. Likely caused by errors in user defined formula or poor parameter initialization."
x and y are Real as are xc and c, I am pretty sure that A should also be Real. I have added the #include <Stat.h> in the header, is there an extra library needed? Can anyone help?