home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 14 / CDACTUAL.iso / cdactual / demobin / share / program / Basic / REALFUN.ZIP / REALTOP.TXT < prev    next >
Encoding:
Text File  |  1991-06-01  |  6.1 KB  |  123 lines

  1.  
  2.  
  3. RealFun:  Real & Complex Math Libraries for QuickBASIC
  4.  
  5. REALTOP.TXT
  6.  
  7.  
  8.  
  9. All the functions and subprograms included in the realfun library, organized by
  10.  
  11. topic:
  12.  
  13.  
  14.  
  15.         Minimum & Maximum
  16.  
  17. Usage                           Inputs          Outputs         Notes
  18.  
  19. z = amin(x, y)                  x, y; sp        z, sp           min of x, y
  20.  
  21. z# = dmin(x#, y#)               x#, y#; dp      z#, dp          min of x#, y#
  22.  
  23. z = amax(x, y)                  x, y; sp        z, sp           max of x, y
  24.  
  25. z# = dmax(x#, y#)               x#, y#; dp      z#, dp          max of x#, y#
  26.  
  27.  
  28.  
  29.         Cosine
  30.  
  31. Usage                           Inputs          Outputs         Notes
  32.  
  33. y = COS(x)                      x, sp           y, sp           x in radians
  34.  
  35. y# = COS(X#)                    x#, dp          y#, dp          x# in radians
  36.  
  37. y = cosd(x)                     x, sp           y, sp           x in degrees
  38.  
  39. y# = dcosd(x#)                  x#, dp          y#, dp          x# in degrees
  40.  
  41.  
  42.  
  43.         Sine
  44.  
  45. Usage                           Inputs          Outputs         Notes
  46.  
  47. y = SIN(x)                      x, sp           y, sp           x in radians
  48.  
  49. y# = SIN(X#)                    x#, dp          y#, dp          x# in radians
  50.  
  51. y = sind(x)                     x, sp           y, sp           x in degrees
  52.  
  53. y# = dsind(x#)                  x#, dp          y#, dp          x# in degrees
  54.  
  55.  
  56.  
  57.         Tangent
  58.  
  59.  
  60.  
  61. Usage                           Inputs          Outputs         Notes
  62.  
  63. y = TAN(x)                      x, sp           y, sp           x in radians
  64.  
  65. y# = TAN(X#)                    x#, dp          y#, dp          x# in radians
  66.  
  67. y = tand(x)                     x, sp           y, sp           x in degrees
  68.  
  69. y# = dtand(x#)                  x#, dp          y#, dp          x# in degrees
  70.  
  71.  
  72.  
  73.         Inverse Cosine
  74.  
  75.  
  76.  
  77. Usage                           Inputs          Outputs         Notes
  78.  
  79. y = acos(x)                     x, sp           y, sp           y in radians
  80.  
  81. y = acosd(x)                    x, sp           y, sp           y in degrees
  82.  
  83. y# = dacos(x#)                  x#, dp          y#, dp          y# in radians
  84.  
  85. y# = dacosd(x#)                 x#, dp          y#, dp          y# in degrees
  86.  
  87.  
  88.  
  89.         Inverse Sine
  90.  
  91.  
  92.  
  93. Usage                           Inputs          Outputs         Notes
  94.  
  95. y = asin(x)                     x, sp           y, sp           y in radians
  96.  
  97. y = asind(x)                    x, sp           y, sp           y in degrees
  98.  
  99. y# = dasin(x#)                  x#, dp          y#, dp          y# in radians
  100.  
  101. y# = dasind(x#)                 x#, dp          y#, dp          y# in degrees
  102.  
  103.  
  104.  
  105.  
  106.         Inverse Tangent
  107.  
  108.  
  109.  
  110. Usage                           Inputs          Outputs         Notes
  111.  
  112. y = ATN(x)                      x, sp           y, sp           y in radians
  113.  
  114. y = atnd(x)                     x, sp           y, sp           y in degrees
  115.  
  116. z = atan(y, x)                  x, y; sp        z, sp           z in radians
  117.  
  118.         use to determine proper quadrant of z
  119.  
  120. z = atand(y, x)                 x, y; sp        z, sp           z in degrees
  121.  
  122.         use to determine proper quadrant of z
  123.  
  124. y# = ATN(X#)                    x#, dp          y#, dp          y# in radians
  125.  
  126. y# = datnd(x#)                  x#, dp          y#, dp          y# in degrees
  127.  
  128. z# = datan#(y#, x#)             x#, y#; dp      z#, dp          z in radians
  129.  
  130.         use to determine proper quadrant of z#
  131.  
  132. z# = datand#(y#, x#)            x#, y#; dp      z#, dp          z in degrees
  133.  
  134.         use to determine proper quadrant of z#
  135.  
  136.  
  137.  
  138.         Hyperbolic Cosine
  139.  
  140. Usage                           Inputs          Outputs         Notes
  141.  
  142. y = cosh(x)                     x, sp           y, sp           real
  143.  
  144. y# = dcosh(x#)                  x#, dp          y#, dp          real
  145.  
  146.  
  147.  
  148.         Hyperbolic Sine
  149.  
  150. Usage                           Inputs          Outputs         Notes
  151.  
  152. y = sinh(x)                     x, sp           y, sp           real
  153.  
  154. y# = dsinh(x#)                  x#, dp          y#, dp          real
  155.  
  156.  
  157.  
  158.         Hyperbolic Tangent
  159.  
  160. Usage                           Inputs          Outputs         Notes
  161.  
  162. y = tanh(x)                     x, sp           y, sp           real
  163.  
  164. y# = dtanh(x#)                  x#, dp          y#, dp          real
  165.  
  166.  
  167.  
  168.         Inverse Hyperbolic Cosine
  169.  
  170. Usage                           Inputs          Outputs         Notes
  171.  
  172. y = acosh(x)                    x, sp           y, sp           real
  173.  
  174. y# = dacosh(x#)                 x#, dp          y#, dp          real
  175.  
  176.  
  177.  
  178.         Inverse Hyperbolic Sine
  179.  
  180. Usage                           Inputs          Outputs         Notes
  181.  
  182. y = asinh(x)                    x, sp           y, sp           real
  183.  
  184. y# = dasinh(x#)                 x#, dp          y#, dp          real
  185.  
  186.  
  187.  
  188.         Inverse Hyperbolic Tangent
  189.  
  190. Usage                           Inputs          Outputs         Notes
  191.  
  192. y = atanh(x)                    x, sp           y, sp           real
  193.  
  194. y# = datanh(x#)                 x#, dp          y#, dp          real
  195.  
  196.  
  197.  
  198.         Modulo
  199.  
  200. Usage                           Inputs          Outputs         Notes
  201.  
  202. y = x MOD k%                    x, sp; k% int   y, sp           uses integer
  203.  
  204.  
  205.                                                                   base only
  206.  
  207. y = amod(x, k)                  x, k; sp        y, sp           uses any base
  208.  
  209. y# = x# MOD k%                  x, dp; k% int   y, dp           uses integer
  210.  
  211.                                                                   base only
  212.  
  213. y# = dmod(x#, k#)               x#, k#; dp      y#, dp          uses any base
  214.  
  215.  
  216.  
  217.         Exponentiation & Logarithms
  218.  
  219. Usage                           Inputs          Outputs         Notes
  220.  
  221. y = EXP(x)                      x, sp           y, sp           real
  222.  
  223. y# = EXP(x#)                    x#, dp          y#, dp          real
  224.  
  225. y = LOG(x)                      x, sp           y, sp           real
  226.  
  227. y# = LOG(x#)                    x#, dp          y#, dp          real
  228.  
  229.  
  230.  
  231.  
  232.  
  233. Notes:
  234.  
  235. - Functions listed in UPPER CASE are intrinsic to Quick BASIC, and are 
  236.  
  237.         included here for completeness.
  238.  
  239. - The abbreviation sp means single-precision, dp means double-precision.
  240.  
  241.