home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / baswiz19.zip / BW$BAS.ZIP / ARCCOSD.BAS next >
BASIC Source File  |  1993-01-29  |  792b  |  19 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        BASWIZ  Copyright (c) 1990-1993  Thomas G. Hanlin III         |
  4. '   |                                                                      |
  5. '   |                      The BASIC Wizard's Library                      |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DECLARE FUNCTION ArcSinD# (Nr AS DOUBLE)
  10.    DECLARE FUNCTION PiD# ()
  11.  
  12. FUNCTION ArcCosD# (Nr AS DOUBLE)
  13.    IF Nr < -1# OR Nr > 1# THEN
  14.       ArcCosD# = 99999#
  15.    ELSE
  16.       ArcCosD# = PiD# / 2# - ArcSinD#(Nr)
  17.    END IF
  18. END FUNCTION
  19.