The haversine formula


Solution P4.4.2