TeX source:
d= \sqrt[]{r_1^2 +r_2^2 -2r_1.r_2cos( \theta _1+\theta_2 )}