Chapter 2: Math, Angle, and Test Operations
48
Note:
For a given
value
, the result of
int(
is the same as the result of
iPart(
for nonnegative numbers
and negative integers, but one integer less than the result of
iPart(
for negative noninteger
numbers.
min(, max(
min(
(minimum value) returns the smaller of
valueA
and
valueB
or the smallest element in
list
. If
listA
and
listB
are compared,
min(
returns a list of the smaller of each pair of elements. If
list
and
value
are compared,
min(
compares each element in
list
with
value
.
max(
(maximum value) returns the larger of
valueA
and
valueB
or the largest element in
list
. If
listA
and
listB
are compared,
max(
returns a list of the larger of each pair of elements. If
list
and
value
are
compared,
max(
compares each element in
list
with
value
.
Note:
min(
and
max(
also are available on the
LIST MATH
menu.
lcm(, gcd(
lcm(
returns the least common multiple of
valueA
and
valueB
, both of which must be nonnegative
integers. When
listA
and
listB
are specified,
lcm(
returns a list of the least common multiple of each
pair of elements. If
list
and
value
are specified,
lcm(
finds the least common multiple of each
element in
list
and
value
.
gcd(
returns the greatest common divisor of
valueA
and
valueB
, both of which must be nonnegative
integers. When
listA
and
listB
are specified,
gcd(
returns a list of the greatest common divisor of
each pair of elements. If
list
and
value
are specified,
gcd(
finds the greatest common divisor of each
element in
list
and
value
.
min(
valueA
,
valueB
)
min(
list
)
min(
listA
,
listB
)
min(
list
,
value
)
max(
valueA
,
valueB
)
max(
list
)
max(
listA
,
listB
)
max(
list
,
value
)
lcm(
valueA
,
valueB
)
lcm(
listA
,
listB
)
lcm(
list
,
value
)
gcd(
valueA
,
valueB
)
gcd(
listA
,
listB
)
gcd(
list
,
value
)