integral of 2*acos(sqrt((1+cos(theta))^2 + sin(theta)^2)/2)/(2*pi^2) from theta=0 to pi