home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 2.ddi / MATH.ZIP / ATAN.CAS < prev    next >
Encoding:
Text File  |  1990-06-07  |  1.5 KB  |  47 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - atan.cas
  3.  *
  4.  * function(s)
  5.  *        atan - trigonometric function
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*[]------------------------------------------------------------[]*/
  9. /*|                                                              |*/
  10. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  11. /*|                                                              |*/
  12. /*|                                                              |*/
  13. /*|     Copyright (c) 1987, 1990 by Borland International        |*/
  14. /*|     All Rights Reserved.                                     |*/
  15. /*|                                                              |*/
  16. /*[]------------------------------------------------------------[]*/
  17.  
  18.  
  19. #pragma inline
  20. #include <asmrules.h>
  21.  
  22. #include <_math.h>
  23. #include <math.h>
  24.  
  25. /*--------------------------------------------------------------------------*
  26.  
  27. Name        atan - trigonometric function
  28.  
  29. Usage        double atan(double x);
  30.  
  31. Prototype in    math.h
  32.  
  33. Description    atan returns the arc tangent  of the input value, which may
  34.         be any finite value.
  35.  
  36. Return value    atan returns a value in the range -pi/2 to pi/2.
  37.  
  38. *---------------------------------------------------------------------------*/
  39. #pragma warn -rvl
  40. double    atan (double x)
  41. {
  42. asm    FLD    DOUBLE (x)
  43. asm    _FAST_    (_FATAN_)
  44.     return;
  45. }
  46. #pragma warn .rvl
  47.