The following subprograms are double-precision math functions and subroutines.
In general, these functions do not correspond to standard Fortran generic intrinsic functions—data types are determined by the usual data typing rules.
These DOUBLE PRECISION functions need to appear in a DOUBLE PRECISION statement.
Refer to the C library man pages for details: the man page for d_acos(x) is acos(3M)
Table 1–3 Double Precision Math Functions
Function Name |
Return Type |
Description |
---|---|---|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
arc cosine -- -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
arc tangent -- -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
arc sine -- arc sinh -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
arc tangent -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
cube root ceiling -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
cosine -- hyperb cos -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION |
error func -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
floor hypotenuse -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
-- -- |
|
INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER |
|
|
DOUBLE PRECISION subroutine DOUBLE PRECISION subroutine subroutine |
random number generators |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
log gamma -- -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
|
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
sine -- hyper sine -- -- |
|
subroutine subroutine subroutine subroutine |
sine & cosine -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
tangent -- -- -- |
|
DOUBLE PRECISION DOUBLE PRECISION DOUBLE PRECISION |
-- -- |
Variables c, l, p, s, u, x, and y are of type DOUBLE PRECISION. Variable n is of type INTEGER.
Explicitly type these functions on a DOUBLE PRECISION statement or with an appropriate IMPLICIT statement).
sind(x), asind(x), … take degrees rather than radians.
See also: intro(3M) and the Numerical Computation Guide.