Mathematical Functions

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.”