In R, the following is used to calculate the integral between points 0 and 0.5 on beta distribution with the parameters 10 and 20:
integrate(function(p) dbeta(p,10,20),0,0.5)
The result is:
0.9692858 absolute error < 6.6e-08
How can this be done in Python?