Problem:

Find the expectation of $4.5 x^2-3.9 x-0.1$ where $x \sim $ \text{PoissonDistribution}[3.5]

from sympy import *
from sympy.stats import *

x = Poisson('x', 3.5)
print(E(4.5*x**2-3.9*x-0.1))
