integrate (integrate 1/2 + p*cos(t)dp from 0 to 1/2)dt from 0 to 2pi