MAX(3I) Last changed: 1-6-98
NAME
MAX, MAX0, AMAX1, DMAX1, AMAX0, MAX1 - Returns maximum values
SYNOPSISMAX0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )
AMAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )
DMAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )
AMAX0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )
MAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )
IMPLEMENTATION
UNICOS, UNICOS/mk, and IRIX systems
STANDARDS
Fortran 90
DESCRIPTION
The MAX intrinsic functions determine maximum values. MAX is the
generic name. It accepts the following arguments:
a1, a2, a3, ...
The arguments must all have the same type, which must be integer
or real, and they must all have the same kind type parameter.
MAX, MAX0, AMAX1, DMAX1, AMAX0, and MAX1 are elemental functions. The
names of these intrinsics cannot be passed as arguments.
NOTES
On UNICOS systems, both execution speed and the number of bits used in
mathematical operations are affected when compiling with
f90 -O fastint, which is the default setting. For more information,
see CF90 Commands and Directives Reference Manual, publication SR-
3901.
RETURN VALUES
The result type and type parameter are the same as the arguments. The
value of the result is that of the largest argument.
EXAMPLES
MAX(-9.0, 7.0, 2.0) has the value 7.0.
SEE ALSO
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.