Problem:

Find the expectation of $-1.5 x^2-1.5 x-4.2$ where $x \sim $ \text{ExponentialDistribution}[1.4]

from sympy import *
from sympy.stats import *

x = Exponential('x', 1.4)
print(E(-1.5*x**2-1.5*x-4.2))
