02-21-2015, 07:26 PM
hi,
why this code won't work?
I get undef...
The formula in G1 is right.
Thanks
why this code won't work?
Code:
GF1();
// declared 'cause I don't want to export GF1
EXPORT gamma(a,l,n)
BEGIN
local f;
f:=int(GF1(a,l,X), X, 0, n);
return f;
END;
GF1(a,l,n)
BEGIN
return (l*e^(-l*n)*(l*n)^(a-1))/Gamma(a);
END;
I get undef...
The formula in G1 is right.
Thanks