sum(-((cos(at) - cos(xt))^2+(sin(at) - sin(xt))^2)), t = 0 to T