home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 156_01 / transcen.doc < prev    next >
Text File  |  1985-08-21  |  1KB  |  49 lines

  1.         FLOAT Library User's Documentation
  2.  
  3. TRANSCEN supplies certain transcendental functions. They give
  4. at least 11 significant digits in all known cases.
  5.   
  6.  
  7. FUNCTIONS
  8.  
  9. sqrt(x);        square root 
  10. exp(x);            exponential 
  11. log(x);            natural logarithm 
  12. log10(x);        log base 10 
  13. pow(x,y);        pow(x,y) = x**y
  14.  
  15. atan(x);        arc tangent 
  16.                 (value in range -pi/2 to pi/2) 
  17. atan2(x,y);        arc tangent of x/y 
  18.                 (value in range -pi to pi) 
  19. cos(x);            cosine 
  20. sin(x);            sine 
  21. tan(x);            tangent 
  22.  
  23. cosh(x);        hyperbolic cosine
  24. sinh(x);        hyperbolic sine
  25. tanh(x);        hyperbolic tangent
  26.  
  27. In each case, the arguments and the value returned are doubles.
  28.  
  29.  
  30. INTERNAL DOCUMENTATION
  31.  
  32. The square root is calculated by the Newton-Raphson method. The
  33. hyperbolic functions are calculated in terms of the exponential.
  34. The other functions are calculated by means of power series
  35. after range reduction.
  36.  
  37.  
  38. POTENTIAL IMPROVEMENTS 
  39.  
  40. Inverse hyperbolics, gamma, and zeta (among others) could be added.
  41. The hyperbolic functions sinh() and tanh() would be more accurate near zero if they
  42. were defined by their own power series.
  43.  
  44.  
  45. AUTHOR
  46.  
  47. sqrt, atan2, cosh, sinh, and tanh (the easy ones) were written
  48. by J. R. Van Zandt, and the others by Neil Colvin. 
  49.