Table of Contents
- Single-Precision Functions
-
- ARCCOS Function
- ARCSIN Function
- ARCTAN Function
- ARCTAN2 Function
- COS Function
- COSH Function
- COTAN Function
- ERF Function
- ERFC Function
- EXP Function
- Single-Precision Exponentiation
- GAMMA Function
- LN Function
- LNGAMMA Function
- LOG Function
- RANDOM Function
- SIN Function
- SINH Function
- SQRT Function
- TAN Function
- TANH Function
- Double-Precision Functions
-
- DARCCOS Function
- DARCSIN Function
- DARCTAN Function
- DARCTAN2 Function
- DCOS Function
- DCOSH Function
- DERF Function
- DERFC Function
- DEXP Function
- DGAMMA Function
- DLGAMMA Function
- DLN Function
- DLOG Function
- DSIN Function
- DSINH Function
- DSQRT Function
- DTAN Function
- DTANH Function
- Double Precision Exponentiation
- Complex Functions
- Common Constants
- Permissible Argument Ranges
This section describes the mathematical functions used to support user-written mathematical intrinsics. Programs written in various languages can use these functions to perform mathematical operations. The compilers in which the functions are used may not refer to the function by the names given to them in this section. (For example, in FORTRAN 77, the function ATAN actually refers to the function ARCTAN described in this section.) The names used in this section are identical to those used in the ALGOL Programming Reference Manual, Volume 1: Basic Implementation. See “Permissible Argument Ranges” in this section for a list of function names used in various other languages.
The functions are grouped as single-precision, double-precision, and complex. A brief description of each function is given. In some instances this description is followed by the algorithm used in computing the function or notes regarding the derivation of the algorithm.
Certain constants such as pi and e are used throughout the algorithms. These constants are defined under “Common Constants.” These values are stated in both single- and double-precision forms, where necessary. The appropriate value should be chosen according to whether the algorithm under consideration is single- or double-precision.
Several procedures are used in exponentiation and are called implicitly by the compilers. Because of their similarity, these procedures are grouped under the heading “Single-Precision Exponentiation,” “Double-Precision Exponentiation,” or “Complex Exponentiation.”