home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 306.lha / RPSC / RPSC.programs.doc < prev    next >
Text File  |  1980-12-04  |  4KB  |  76 lines

  1.  
  2.    The RPSC directory contains three example program files Ratio, Poly
  3. and Orbit which may be run from RPSC. To load any of these files select
  4. load program or join program from the file access menu and type the name
  5. of the file into the requester. 
  6.  
  7.    Ratio ( short for rationalizer ) is a program that converts a
  8. fractional number into a ratio of two integers. To run Ratio select
  9. gosub then select "A". To see how this works divide two prime numbers
  10. then run ratio. The result will be the two original numbers. Ratio may
  11. also be used to simplify fractions.
  12.  
  13.    Poly contains two user defined functions. One "P" evaluates
  14. a polynomial of up to seven terms. The other "Q" evaluates the
  15. derivative of the same polynomial. To use these you must first dimension
  16. an eaght element matix "P" and fill it with the coefficients of the
  17. polynomial low order first unused terms must contain zeros. These may
  18. be evaluated, graphed, solved, or integrated.
  19.  
  20.    These first two files do not use any of the same labels or
  21. variables and may be combined using join program.
  22.  
  23.    Orbit contains four programs for all of you space ship navigators.
  24. These programs operate on two body orbit trajectories expressed in
  25. canonical units. Elements from vectors ( gosub "E" ) expects a position
  26. vector "A" and a velocity vector "B" and returns an array containing the
  27. classical orbital elements "E". Vectors from elements ( gosub "V" )
  28. expects the array of orbital elements "E" and returns the position
  29. vector "A" and the velocity vector "B". Position and velocity as a
  30. function of time ( gosub "K" , "K" for Kepler ) expects an initial position
  31. vector "A", an initial velocity vector "B", and time "T" and returns
  32. the position "R" and velocity "V" after time "T". Convert ( gosub "C" )
  33. converts orbital elements ( "E" ) from one format to another.
  34.  
  35.    "E" the array of classical orbital elements. Elements 0 - 5 are
  36. required for gosub "V". All angles are in radians. Pariapsis refers
  37. the point of closest approach. The fundamental plane is defined by
  38. the I and J unit vectors.
  39.  
  40. Element #    Desciption
  41.    0           Parameter or semi-latus rectum. The size of the orbit
  42.                measured from the focus perpendicular to the major axis.
  43.    1           Eccentricity e. The shape of the orbit.
  44.                   e = 0       Circle
  45.                   0 < e < 1   Ellipse
  46.                   e = 1       Parabola
  47.                   e > 1       Hyperbola
  48.    2           Inclination. The angle from the plane of the orbit to
  49.                the fundamental plane.
  50.    3           Longitude of the ascending node. The angle in the
  51.                fundamental plane from the I unit vector to the point
  52.                where the satellite crosses the fundamental plane going
  53.                north ( positive K ).
  54.    4           Argument of periapsis. The angle in the plane of the orbit
  55.                from the ascending node to periapsis.
  56.    5           True anomaly at epoch. The angle from pariapsis to the
  57.                satellite.
  58.    6           Argument of latitude at epoch. The angle in the plane of
  59.                the orbit from the ascending node to the position vector.
  60.    7           True longitude at epoch. The angle from the I unit vector
  61.                to the position vector.
  62.    8           Radius of periapsis. Minimum distance.
  63.    9           Radius of apoapsis. Maximum distance.
  64.  
  65.    Convert ( gosub "C" ) makes the following changes. All angles converted
  66. from degrees to radians.
  67.  
  68. Element #    Change from               To
  69.    0           Semi-major axis            Semi-latus rectum
  70.    1                    - no change -
  71.    2           Degrees                    Radians
  72.    3           Degrees                    Radians
  73.    4           Longitude of pariapsis     Argument of periapsis
  74.    5           True longitude at epoch    True anomaly at epoch
  75.  
  76.