I am trying to implement the upper incomplete gamma function of order zero in Python. Normally we use gammaincc function but according to the docs,it's defined only for positive a. Is there any way to implement it in python for a=0 case? Thanks.
Upper Incomplete Gamma Function of order 0 in scipy
533 views Asked by Prav001 At
1
SciPy implements the regularized incomplete gamma function, the one with division by Gamma(a). This division makes no sense when a=0, but the non-regularized upper gamma still makes sense. Unfortunately there is no flag like
regularized=Falsein SciPy.However, in the special case
a=0the upper incomplete gamma function agrees with the exponential integralexp1which is available in SciPy:(Compare to Wolfram Alpha).
Alternatively, the
mpmathlibrary computes non-regularized incomplete gammas by default.