I guess not, but this should be possible to do without changing the code:
http://www.unipress.waw.pl/fityk/ref.html#user-defined-functions-udf
I don't know what's the exact formula of the function you'd like to
have, but if Gamma functions is needed, you can use exp(lgamma(x))
Marcin
--
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/
> If I define my Beta function as dependent on height, alpha, beta, it
> works, but values less than 1 can be assigned to alpha and beta
> producing non realistic curves.
> Is it possible to limit the search range to 1..Inf?
no, the only workaround is to replace alpha with e.g. 1+t^2
>
> Another solution is to define a multi-statement function: compute
> alpha and beta from center and fwhm. And then use the above equation
> to compute the distribution.
> Is it possible?
I'm not sure what you mean.
It's possible to define a function like this:
define ReadShockley(sigma0=1, a=1) = sigma0 * t * (a - ln(t)) where t=x*pi/180
but that's exactly the same as:
define ReadShockley(sigma0=1, a=1) = sigma0 * (x*pi/180) * (a - ln(x*pi/180))
> There are only two problems remaining:
> 1) Sometimes the L-M fit outputs the message: "Error: In iteration 7:
> trying to reverse singular matrix. Column 14 is zeroed". OK, could
> happen. But the serious problem is that Fityk freezes and I should use
> the Task manager to regain control.
Yes, I've also seen this. That's a bug probably introduced in the
latest version, but I haven't investigated it yet.
> 2) There is a vertical line at zero for the fitted result that is
> impossible to remove
I look into this issue.
> There are only two problems remaining:
> 1) Sometimes the L-M fit outputs the message: "Error: In iteration 7:
> trying to reverse singular matrix. Column 14 is zeroed". OK, could
> happen. But the serious problem is that Fityk freezes and I should use
> the Task manager to regain control.
Yes, I've also seen this. That's a bug introduced in the latest
version, but I haven't investigated it yet.
> 2) There is a vertical line at zero for the fitted result that is
> impossible to remove
yes, that's another problem