home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 3 / hamradioversion3.0examsandprograms1992.iso / misc / gcdist / gcdist.doc
Text File  |  1989-11-27  |  2KB  |  44 lines

  1.  
  2.  
  3.  
  4.                     GCDIST (Great Circle DISTance) 9/21/84
  5.                     Dennis E. Persyk        Barrington, Il
  6.  
  7.          The BASIC program GCDIST calculates the great circle distance
  8.     between two points on the earth's surface, and the initial heading,
  9.     given the latitude and longitude coordinates of the two points.  It is
  10.     useful to pilots for calculating distances, amateur radio operators for
  11.     beam headings and Mileage Plus flyers to determine their mileage award
  12.     credits.
  13.  
  14.          The equations were taken from Hewlett-Packard HP-25 Applications
  15.     Programs, 00025-90011 Rev. E 7/76.
  16.  
  17.  
  18.          The ARCCOS function is synthesized using the IBM reccomended
  19.     formula (as given in 6025013 Appendix E. Mathmatical Functions).  Some
  20.     heading calculations may result in illegal function calls as the SQR
  21.     argument can become negative.  Some accuracy checks were run and
  22.     results follow. The calculations shown for BASIC were done with the /D
  23.     command line option, as suggested by John Miron, to obtain double
  24.     precision trig functions.
  25.  
  26.     BASIC/HP     OBK TO 3CK          SFO TO TOKYO        3CK TO MRB
  27.     ----------------------------------------------------------------
  28.     BASIC        16.3 nm             4460.0  nm          498.0  nm
  29.     HP 41C       16.3 nm             4460.0  nm          498.0  nm
  30.  
  31.     BASIC        265  deg            325  deg            106  deg
  32.     HP 41C       265  deg            325  deg            106  deg
  33.  
  34.          As an interesting (for pilots) aside on the accuracy question, it
  35.     is noted that the distance result for the OBK to 3CK calculation
  36.     differs by 0.1 nm from the NOS Airport/Facility Directory value.  The
  37.     listing for 3CK shows its position as 16.4 nm and 265 degrees from OBK,
  38.     agreeing with the approach plate showing 16.4 DME OBK to the runway 26
  39.     threshold. The difference of 0.1 nm is hard to explain because the
  40.     runway threshold is nearly the most easterly point on the airport.
  41.  
  42.          As noted in the program, south latitudes and east
  43.     longitudes CAN be used -- they are entered as negative values.
  44.