Post Reply 
Incomplete Gamma Function of the Second Kind
05-25-2021, 10:26 PM (This post was last modified: 05-25-2021 10:50 PM by toml_12953.)
Post: #1
Incomplete Gamma Function of the Second Kind
I'm trying to compute the Gamma function by computing the incomplete gamma function of the first kind and the second kind and adding them together.

(no jokes about Close Encounters of the Third Kind, please! Big Grin)

The first kind computes with no problem but the second kind gives me an error:

"This function works only in radian mode Error: Bad Argument Value"

It doesn't use any trig functions that I can see so why the error? I know it does work in radian mode but I'm trying to understand what's happening.

Code:
EXPORT γ(A,X)
BEGIN
  RETURN approx(int(T^(A-1)*e^(-T),T,0,X));
END;

EXPORT Γ(A,X)
BEGIN
  RETURN approx(int(T^(A-1)*e^(-T),T,X,∞));
END;

EXPORT Γ(A)
BEGIN
  RETURN approx(γ(A,30) + Γ(A,30));
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Incomplete Gamma Function of the Second Kind - toml_12953 - 05-25-2021 10:26 PM



User(s) browsing this thread: 1 Guest(s)