home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / logo / powerlogo / utilities / math.doc < prev    next >
Text File  |  1992-11-10  |  3KB  |  110 lines

  1.  
  2.    Math.doc
  3.  
  4. Utilities for number crunching, including vectors and complex numbers.
  5.  
  6.  
  7. !              int
  8.          int = Integer number.
  9.    Computes the factorial of the number.  (Non-integer inputs produce
  10.    "strange" results.)
  11.  
  12. cabs           complex
  13.          complex = List of two numbers (first real, second imaginary).
  14.    Output real absolute value of a complex number.
  15.  
  16. cadd           complex complex
  17.          complex = List of two numbers (first real, second imaginary).
  18.    Output complex sum of two complex numbers.
  19.  
  20. cconj          complex
  21.          complex = List of two numbers (first real, second imaginary).
  22.    Output complex conjugate of a complex number.
  23.  
  24. cdiv           complex complex
  25.          complex = List of two numbers (first real, second imaginary).
  26.    Output complex quotient of two complex numbers.
  27.  
  28. cmutl          complex complex
  29.          complex = List of two numbers (first real, second imaginary).
  30.    Output complex product of two complex numbers.
  31.  
  32. cscale         complex real
  33.          complex = List of two numbers (first real, second imaginary).
  34.          real = Any number.
  35.    Output complex product of a complex number and a real number.
  36.  
  37. csqrt          complex
  38.          complex = List of two numbers (first real, second imaginary).
  39.    Output complex square root of a complex number.
  40.  
  41. csub           complex complex
  42.          complex = List of two numbers (first real, second imaginary).
  43.    Output complex difference between two complex numbers.
  44.  
  45. gcd            int int
  46.          int = Integer number.
  47.    Computes the greatest common divisor of the inputs.  (Non-integer
  48.    inputs produce "strange" results.)
  49.  
  50. lcm            int int
  51.          int = Integer number.
  52.    Computes the least common multiple of the inputs.  (Non-integer
  53.    inputs produce "strange" results.)
  54.  
  55. rotate-xy      basis angle
  56.          basis = List of three vectors.
  57.          angle = Number, an angle.
  58.    Output basis rotated angle in the X-Y plane.
  59.  
  60. rotate-yz      basis angle
  61.          basis = List of three vectors.
  62.          angle = Number, an angle.
  63.    Output basis rotated angle in the Y-Z plane.
  64.  
  65. rotate-zx      basis angle
  66.          basis = List of three vectors.
  67.          angle = Number, an angle.
  68.    Output basis rotated angle in the Z-X plane.
  69.  
  70. -v             vector
  71.          vector = List of three numbers.
  72.    Output vector opposite of a vector.
  73.  
  74. vadd           vector vector
  75.          vector = List of three numbers.
  76.    Output vector sum of two vectors.
  77.  
  78. vbasis         vector basis
  79.          vector = List of three numbers.
  80.          basis = List of three vectors.
  81.    Change of basis. Output vector expressed in terms of new basis.
  82.  
  83. vcross         vector vector
  84.          vector = List of three numbers.
  85.    Output vector cross product of two vectors.
  86.  
  87. vdot           vector vector
  88.          vector = List of three numbers.
  89.    Output scalar dot product of two vectors.
  90.  
  91. vmag           vector
  92.          vector = List of three numbers.
  93.    Output scalar magnitude of a vector.
  94.  
  95. vrotate        vector vector angle
  96.          vector = List of three numbers.
  97.          angle = Number, an angle.
  98.    Output first vector rotated toward the second vector, second vector
  99.    must be perpendicular to the first.
  100.  
  101. vscale         vector scalar
  102.          vector = List of three numbers.
  103.          scalar = Any number.
  104.    Output vector product of a vector and a scalar.
  105.  
  106. vsub           vector vector
  107.          vector = List of three numbers.
  108.    Output vector difference between two vectors.
  109.  
  110.