def incomplete_gamma_upper(a, x, precision=9):
# Numerical approximation of the lower incomplete gamma function to the given precision
# https://en.wikipedia.org/wiki/Incomplete_gamma_function
# http://mathworld.wolfram.com/IncompleteGammaFunction.html
return gamma(a) - incomplete_gamma_lower(a, x, precision)
评论列表
文章目录