home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Arccos
-
- * Written and contributed by ESSOR MASO
- *
- * -1 <= arg <= 1
- *
- * The error ABS(e(arg)) <= 2*10^(-8)
- * 0 <= value returned <= PI
- *
- * The value 2 is returned if the abs(arg) > 1
- *
- * Correct form: ARCCOS(arg)
- *
- * National Bureau of Standards Handbook of Mathematical Functions
-
- PARAMETERS _clwork
-
- IF TYPE("_clwork") != "N"
- RETURN(2)
- ENDIF
-
- SET DECIMAL TO 10
-
- IF ABS(_clwork)>1
- RETURN(2)
- ENDIF
-
- RETURN(1.57079633 - Arcsin(_clwork))
-
- * End of File