max(3I)
MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, AMAX0, MIN, MIN0, AMIN1, DMIN1, QMIN1, MIN1, AMIN0 - Returns maximum or minimum values
As shipped in IRIX 6.5.19. Last changed in IRIX 6.5.19.
NAME MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, AMAX0, MIN, MIN0, AMIN1, DMIN1, QMIN1, MIN1, AMIN0 - Returns maximum or minimum values SYNOPSIS MAX ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) 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] ... ) MIN ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) MIN0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) AMIN1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) DMIN1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) QMIN1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) MIN1 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) AMIN0 ([A1=]a1, [A2=]a2 [,[A3=]a3] ... ) STANDARDS Fortran Fortran extension: QMAX1, QMIN1 DESCRIPTION The MAX, MAX0, AMAX1, DMAX1, QMAX1, MAX1, and AMAX0 intrinsic functions determine maximum values. MAX is the generic name; the others are specifics. The MIN, MIN0, AMIN1, DMIN1, QMIN1, MIN1, and AMIN0 intrinsic functions find minimum values. MIN 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. RETURN VALUES For the MAX routines, the value of the result is that of the largest argument. For the MIN routines, the value of the result is that of the smallest argument. MAX and MIN accept type real or integer and return a result with the same type and kind type as its arguments. MAX0 and MIN0 accept and return type integer. AMAX1 and AMIN1 accept and return type single-precision real. DMAX1 and DMIN1 accept and return type double-precision real. QMAX1 and QMIN1 accept and return type quad-precision real. MAX1 and MIN1 accept type real and return type default integer. AMAX0 and AMIN0 accept type integer and return type default real. The terms single precision, double precision, and quad precision 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) yields 7.0. MIN(-9.0,7.0,2.0) yields -9.0.