HP Forums
recalling subroutine - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: recalling subroutine (/thread-3166.html)



recalling subroutine - salvomic - 02-21-2015 07:26 PM

hi,
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