home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / MATHSRC.ZIP / ATANL.CAS < prev    next >
Encoding:
Text File  |  1992-06-10  |  1.2 KB  |  49 lines

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