[SciPy-User] Question on scipy.special.gammaincc

Pauli Virtanen pav at iki.fi
Tue May 24 19:09:00 EDT 2011


On Tue, 24 May 2011 15:44:55 -0400, Skipper Seabold wrote:
[clip]
> This is because it returns the regularized incomplete gamma function
> (see the doc string). It returns zero because Gamma(n) = inf for n < 0.

However, 1/Gamma(z) = 0 only at negative integers on the real line, so the
return value of zero is bogus. The function should really rather return
`nan` (to indicate that the evaluation is not implemented), or even better,
compute the correct value.

	Pauli




More information about the SciPy-User mailing list