(sqrt(4sin^2(a)+2cos(a)-2))/2 = sin(a/2)*sqrt(2cos(a) + 1)