The haversine formula determines the great-circle distance between two points on a sphere given their longitudes and latitudes. Important in navigation, it is a special case of a more general formula in spherical trigonometry, the law of haversines, that relates the sides and angles of spherical triangles. The first table of haversines in English was published by James Andrew in 1805,[1] but Flori
![Haversine formula - Wikipedia](https://cdn-ak-scissors.b.st-hatena.com/image/square/e507fa9a5917fdf708b118b85a3a22349a58f816/height=288;version=1;width=512/https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Fc%2Fcb%2FIllustration_of_great-circle_distance.svg%2F1200px-Illustration_of_great-circle_distance.svg.png)