Re: Mathematics Code

 BBS: Inland Empire Archive
Date: 12-18-92 (00:24)             Number: 390
From: JIM VAN NULAND               Refer#: NONE
  To: SEAN PAGE                     Recvd: NO  
Subj: Re: Mathematics Code           Conf: (2) Quik_Bas
 >Using the descriptions given above, calulate the
 >range between ships.

    The distance is the square root of the sum of squares
of differences in each co-ordinate. That is:

  dist = sqr((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2)

  Now, for the azimuth and elevation, these are similar to the computation of
the position of a planet -- the conversion from rectangular
co-ordinates into (geocentric) longitude and latitude.
Unhappily I'm nearly out of time and don't know them
offhand enough to quickly type them in.  If you find them
in an astro or math book, be very careful in the arc-
cosine, the one that will give you the azimuth, as it's
troublesome to obtain the correct quadrant.

--- ConfMail V3.3
 * Origin: The PC-TIE --- San Jose, CA (1:143/11)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET