Problem:

Find the expectation of $1.4 x^2-3.7 x-4.5$ where $x \sim $ \text{ExponentialDistribution}[1.]

from sympy import *
from sympy.stats import *

x = Exponential('x', 1.)
print(E(1.4*x**2-3.7*x-4.5))
