sqrt((2-2sin(x))^2+cos^2(x))