simplify sqrt(2^2 + (sint + tcost)^2 + (cost-tsint)^2)