Origin Version (Select Help-->About Origin): OriginPro 7.5 SR6 Operating System: Windows XP
I am trying to fit a function which is composed of several parts. The boundaries are depending on the fit parameters. I have tried it like this (with arbitrary data and parameter)
if ( 0.1 < abs(x^2-14+sqrt(gamma)) ) { u1=0; } else { u1=500000; }
if ( 0.1 < abs(x^2-14-sqrt(gamma)) ) { u2=0; } else { u2=500000; }
y=u1*x/(gamma^2+x^2)+u2*x/(gamma^2-x^2);
I have different function but they are way to long to put here. But I hope you get the idea. The function compiles, but then I get only zeroes when I calculate the Chi-Square and fitting doesn't work then, because the Chi-Square doesn't change.
Thanks for the help |