def f(x):
     t1 = special_binom(m1, x)
     t2 = special_binom(m2, n - x)
     the_integral = quad(integrand,
                         0,
                         1,
                         epsrel=1e-16,
                         epsabs=1e-16)
     return t1 * t2 * the_integral[0]
 def f(x):
     t1 = special_binom(m1, x)
     t2 = special_binom(m2, n - x)
     return t1 * t2 * w**x