I\'m trying to calculate this function below.
and I can do it with mpmath like this.
from mpmath import nsum, inf from math import pow, exp, factor