cost = 2{cos(t/2)}^2 - 1