home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST149.PRG < prev    next >
Encoding:
Text File  |  1989-08-08  |  456 b   |  23 lines

  1. ********************
  2.  
  3. FUNCTION Cotangent
  4.  
  5.    * Written and contributed by ESSOR MASO
  6.    *
  7.    * Correct form: COTANGENT(arg,'D')
  8.    *
  9.    * National Bureau of Standards Handbook of Mathematical Functions
  10.  
  11.    PARAMETERS _cowork, _codeg
  12.  
  13.    IF TYPE("_cowork") + TYPE("_codeg") != "NC"
  14.      RETURN(2)
  15.    ENDIF
  16.  
  17.    RETURN(IF(_codeg='R', TANGENT(1.5707963268 - _cowork,'R'),TANGENT(90 - _cowork,'D')))
  18.  
  19. * End of File
  20.  
  21.  
  22. ********************
  23.