These subprograms are single-precision math functions and subroutines.
In general, the functions below provide access to single-precision math functions that do not correspond to standard Fortran generic intrinsic functions—data types are determined by the usual data typing rules.
These functions need not be explicitly typed with a REAL statement as long as default typing holds. (Names beginning with “r” are REAL, with “i” are INTEGER.)
For details on these routines, see the C math library man pages (3M). For example, for r_acos(x) see the acos(3M) man page.
Table 1–2 Single-Precision Math Functions
Function Name |
Return Type |
Description |
---|---|---|
REAL REAL REAL REAL REAL |
-- -- -- |
|
REAL REAL REAL REAL REAL |
arc tangent -- arc tanh -- -- |
|
REAL REAL REAL REAL REAL |
-- -- -- |
|
REAL REAL REAL |
-- -- |
|
REAL REAL REAL |
-- |
|
REAL REAL REAL REAL REAL |
cosine -- -- -- |
|
REAL REAL |
-- |
|
REAL REAL REAL REAL |
-- |
|
REAL REAL REAL |
-- |
|
INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER INTEGER |
-- -- -- -- -- -- -- -- -- -- |
|
REAL subroutineREAL subroutine subroutine | ||
REAL REAL REAL REAL |
-- -- -- |
|
REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL |
|
|
REAL REAL REAL REAL REAL |
-- hyperb sin -- -- |
|
subroutine subroutine subroutine subroutine |
sine & cosine -- -- -- |
|
REAL REAL REAL REAL REAL |
-- -- -- |
|
REAL REAL REAL |
-- -- |
Variables c, l, p, s, u, x, and y are of type REAL. Variable n is of type INTEGER.
Type these functions as explicitly REAL if an IMPLICIT statement is in effect that types names starting with “r” to some other date type.
sind(x), asind(x), … take degrees rather than radians.
See also: intro(3M) and the Numerical Computation Guide.