02-19-2015, 03:07 PM
hi,
please, I need hints to recall a function in the same program passing parameters.
The second function of this code won't work:
How to pass "u" as variable for the integral?
Also ProgName.gammad() doesn't works...
please, I need hints to recall a function in the same program passing parameters.
The second function of this code won't work:
Code:
EXPORT gammad(k,t,n)
BEGIN
local f;
f:= (n^(k-1)*e^(-n/t))/(t^k*Gamma(k));
return f;
END;
EXPORT gamma_cdf(k,t,n)
BEGIN
local f,u;
f:= int(gammad(k,t,u), u, 0, n);
return f;
END ;
How to pass "u" as variable for the integral?
Also ProgName.gammad() doesn't works...