max(3I)

MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, AMAX0 - Returns maximum values

As shipped in IRIX 6.5.7. Last changed in IRIX 6.5.5.

NAME
     MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, AMAX0 - Returns maximum values

SYNOPSIS
     MAX0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

     AMAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

     DMAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

     QMAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

     MAX1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

     AMAX0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... )

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77

STANDARDS
     Fortran

     Fortran extension:  QMAX1

DESCRIPTION
     The MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, and AMAX0 intrinsic
     functions determine maximum values.  MAX is the generic name; the
     others are specifics.  They accept the following arguments:

     a1, a2, a3, ...
          The arguments must be all of type real or all of type integer.
          All arguments must have the same data type.

          The kind types of the arguments can differ.  This is an extension
          to the Fortran standard.

     These are elemental intrinsic 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.

RETURN VALUES
     The value of the result is that of the largest argument.

     MAX accepts type real or integer and returns a result with the same
     type and kind type as its arguments.

     MAX0 accepts and returns type integer.

     AMAX1 accepts and returns type single-precision real.

     DMAX1 accepts and returns type double-precision real.

     QMAX1 accepts and returns type quad-precision real.

     MAX1 accepts type real and returns type default integer.

     AMAX0 accepts type integer and returns type default real.

     The data type and kind type for single-precision, double-precision,
     and quad-precision values differ depending on your platform.  For
     platform-specific information, see the TERMINOLOGY section of the
     INTRO_INTRIN(3I) man page.

EXAMPLES
     MAX(-9.0, 7.0, 2.0) has the value 7.0.

SEE ALSO
     Intrinsic Procedures Reference Manual for the printed version of this
     man page.