Problem:

Find the expectation of $2.4 x^2+4.5 x-9.5$ where $x \sim $ \text{BetaDistribution}[0.6,0.4]

from sympy import *
from sympy.stats import *

x = Beta('x', 0.6, 0.4)
print(E(2.4*x**2+4.5*x-9.5))
