I have a pretty simple sum to solve:
\sum_{k=1}^\infty p^k/k! * 1/(k + h)
Wolfram Alpha does it. I tried to get there with sympy, but failed miserably.
from sympy import *
h, k, lam, p = symbols('h k lambda p')
exprInner = Sum(p**k/factorial(k) * 1/(h+k), (k, 1, oo))
solve(exprInner)
If I print exprInner
, it looks okay - but it will just respond with []
to any solve request. Given that Wolfram Alpha takes seconds to solve this, it should be doable with sympy, I'd suppose? How should I approach this?