Problem:

Find the expectation of $-2.3 x^2+2.9 x-1.1$ where $x \sim $ \text{BetaDistribution}[0.3,0.9]

from sympy import *
from sympy.stats import *

x = Beta('x', 0.3, 0.9)
print(E(-2.3*x**2+2.9*x-1.1))
