custom_incomplete_gamma

halotools.empirical_models.custom_incomplete_gamma(a, x)[source]

Incomplete gamma function.

For the case covered by scipy, a > 0, scipy is called. Otherwise the gamma function recurrence relations are called, extending the scipy behavior.

Parameters:
aarray_like
xarray_like
Returns:
gammaarray_like

Examples

>>> a, x = 1, np.linspace(1, 10, 100)
>>> g = custom_incomplete_gamma(a, x)
>>> a = 0
>>> g = custom_incomplete_gamma(a, x)
>>> a = -1
>>> g = custom_incomplete_gamma(a, x)