Handle summation of big binomials in Python
问题 I need to compute this formula: It is an approximation of this integral but it doesn't matter, actually I just want to compute the value of Figure 1 with PYTHON , that's what the topic concerns. K, alpha and sigma are fixed values within a single computation, usually: 0 <= k <= 99; alpha = 3; sigma = 2. Below is how I am trying to compute such summation in python: import decimal from scipy.special import binom def residual_time_mean(alpha, sigma=2, k=1): prev_prec = decimal.getcontext().prec