MAX(3F) MAX(3F)
max, max0, imax0, jmax0, amax0, max1, amax1, dmax1, qmax1, imax1, jmax1,
aimax0, ajmax0 - FORTRAN maximum-value functions
integer i, j, k, l
integer*2 ii1, ii2, ii3, ii4
integer*4 ji1, ji2, ji3, ji4
real a, b, c, d
real*4 r1, r2, r3, r4
double precision dp1, dp2, dp3
real*16 qp1, qp2, qp3
k = max0(i, j)
l = max(i, j, k)
ii4 = imax0(ii1, ii2, ii3)
ii4 = max(ii1, ii2, ii3)
ii3 = max0(ii1, ii2)
ji4 = jmax0(ji1, ji2, ji3)
ji3 = max(ji1, ji2)
ji4 = max0(ji1, ji2, ji3)
a = amax0(i, j, k)
a = max(i, j, k)
i = max1(a, b)
i = max(a, b, c)
d = amax1(a, b, c)
c = max(a, b)
dp3 = dmax1(dp1, dp2)
dp4 = max(dp1, dp2, dp3)
qp3 = qmax1(qp1, qp2)
qp4 = max(qp1, qp2, qp3)
ii1 = imax1(r1, r2)
ii1 = max1(r1, r2, r3)
ji1 = jmax1(r1, r2)
ji1 = max1(r1, r2, r3)
r1 = aimax0(ii1, ii2, ii3)
r1 = amax0(ii1, ii2, ii3)
r1 = aimax0(ji1, ji2, ji3)
r1 = amax0(ji1, ji2, ji3)
Page 1
MAX(3F) MAX(3F)
The maximum-value functions return the largest of their arguments. There
may be any number of arguments, but they must all be of the same type.
max0 returns the integer form of the maximum value of its integer
arguments; amax0, the real form of its integer arguments; max1, the
integer form of its real arguments; amax1, the real form of its real
arguments; dmax1, the double-precision form of its double-precision
arguments; imax1, the integer*2 form of its real*4 arguments; jmax1, the
integer*4 form of its real*4 arguments; aimax0, the real*4 form of its
integer*2 arguments; and ajmax0, the real*4 form of its integer*4
arguments. max, max0, max1, and amax0 are the generic forms which can be
used as indicated above.
min(3F).
Page 2
MAX(3I) Last changed: 1-6-98
MAX, MAX0, AMAX1, DMAX1, AMAX0, MAX1 - Returns maximum values
MAX0 ([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] ... )
UNICOS, UNICOS/mk, and IRIX systems
Fortran 90
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.
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 SR3901.
The result type and type parameter are the same as the arguments. The
value of the result is that of the largest argument.
MAX(-9.0, 7.0, 2.0) has the value 7.0.
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.
MAX(3I) Last changed: 1-6-98
MAX, MAX0, AMAX1, DMAX1, AMAX0, MAX1 - Returns maximum values
MAX0 ([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] ... )
UNICOS, UNICOS/mk, and IRIX systems
Fortran 90
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.
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 SR3901.
The result type and type parameter are the same as the arguments. The
value of the result is that of the largest argument.
MAX(-9.0, 7.0, 2.0) has the value 7.0.
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.
[ Back ]
|