Permissible Argument Ranges

Permissible Argument Ranges lists the permissible argument ranges for each of the specified mathematical functions. The word All signifies that all single-precision numbers—or double-precision numbers if the function is double-precision—are permitted. All is often modified in some obvious manner. If a function has more than one argument, the requirements for each are listed separated by commas (,). The notation (0,0) means that both the first and second arguments are 0 (zero).

Table 69.  Permissible Argument Ranges

Function Name

Permissible Argument Range

ARCCOS

All >= -1 and <= 1

ARCSIN

All >= -1 and <= 1

ARCTAN

All

ARCTAN2

All except (0,0)

COS

ABS < 10**24

COSH

All

COTAN

All

ERF

All

EXP

All

EXPONENT(RTOR)

All for exponent; all for base except negative numbers to nonintegral exponent

GAMMA

All except negative integers and 0

LN

All positive

LNGAMMA

All positive

LOG

All positive

RANDOM

ABS < 2**39

SIN

ABS < 10**24

SINH

All

SQRT

All nonnegative

TAN

ABS < 10**22

TANH

All

DARCTAN

All

DARCTAN2

All except (0,0)

DCOS

ABS < 10**24

DEXP

All

DLN

All positive

DLOG

All positive

DSIN

ABS < 10**24

DSQRT

All nonnegative

EXPONENT

For both RTOD and DTOD:

(RTOD)

All for exponent

(DTOD)

All nonnegative for base

CABS

All

CCOS

All

CEXP

All

CLN

All

CSIN

All, -107< y <159

CSQRT

All

EXPONENT

For both CTOR and CTOD:

(CTOR)

All for base;

(CTOD)

All real or double-precision for exponent


Function Names lists the function names in various languages. The names used in this section are the ALGOL names.

Table 70. Function Names

ALGOL

FORTRAN77

COBOL 74 and COBOL 85

PASCAL

ARCCOS

ACOS

ARCCOS

ARCSIN

ASIN

ARCSIN

ARCTAN

ATAN

ARCTAN

ARCTAN

ARCTAN2

ATAN2

 

CABS

CABS

 

CCOS

CCOS

 

CEXP

CEXP

 

CLN

CLOG

 

COS

COS

COS

COS

COSH

COSH

COSH

COTAN

 

COTAN

CSIN

CSIN

 

CSQRT

CSORT

 

DARCCOS

DACOS

 

DARCSIN

DASIN

 

DARCTAN

DATAN

 

DARCTAN2

DATAN2

 

DCOS

DCOS

 

DCOSH

DCOSH

 

DERF

 

 

DERFC

 

 

DEXP

DEXP

 

DGAMMA

 

 

DLGAMMA

 

 

DLN

DLOG

 

DLOG

DLOG10

 

DSIN

DSIN

 

DSINH

DSINH

 

DSQRT

DSORT

 

DTAN

DTAN

 

DTANH

DTANH

 

ERF

 

ERF

ERFC

 

 

EXP

EXP

EXP

EXP

GAMMA

 

GAMMA

LN

ALOG

LN

LNGAMMA

 

LNGAMMA

LOG

ALOG10

LOG

RANDOM

RANDOM

RANDOM

SIN

SIN

SIN

SIN

SINH

SINH

SINH

SQRT

SQRT

SQR

SQRT

TAN

TAN

TAN

TAN

TANH

TANH

TANH