Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 488 Bytes

Haversine.md

File metadata and controls

22 lines (19 loc) · 488 Bytes

Haversines

Let's find the distance between Big Ben in London and the Statue of Liberty in New York.

.> cd .flight.Geodesy
london =
    (Rad lat) = Convert.degToRad (Deg 51.5007)
    (Rad lng) = Convert.degToRad (Deg -0.1246)
    LatLng (Lat lat) (Lng lng)
newyork =
    (Rad lat) = Convert.degToRad (Deg 40.6892)
    (Rad lng) = Convert.degToRad (Deg -74.0445)
    LatLng (Lat lat) (Lng lng)
> london
> newyork
> Haversine.distance london newyork