Mercator Sailing: Course and Distance +- HP Forums (http://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Mercator Sailing: Course and Distance (/thread-11196.html) |
Mercator Sailing: Course and Distance - Eddie W. Shore - 08-09-2018 10:08 PM Introduction The following program MERCATOR calculates the course direction and distance in miles given two pairs of latitude (north/south) and longitude (east/west). Conversion to arc minutes will be required during calculation. Code:
Example Latitude 1: 43° 21’ 16” N = 43.3544444444° Longitude 1: 102° 54’ 16” W = 102.9044444444° Latitude 2: 42° 4’ 30” N = 42.075° Longitude 2: 106° 3’ 8” W = 106.0522222222° Results: Course: 5.782390957° Distance: 189.832588 mi Source: Henry H. Shufeldt and Kenneth E. Newcomer The Calculator Afloat: A Mariner’s Guide to the Electronic Calculator Naval Institute Press: Annapolis, Maryland. 1980 |