Operation Manual
Chapter 2: Math, Angle, and Test Operations 55
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.
remainder(
remainder( returns the remainder resulting from the division of two positive whole numbers, dividend
and divisor, each of which can be a list. The divisor cannot be zero. If both arguments are lists, they must
have the same number of elements. If one argument is a list and the other a non-list, the non-list is
paired with each element of the list, and a list is returned..
lcm(valueA,valueB)
lcm(
listA,listB)
lcm(
list,value)
gcd(
valueA,valueB)
gcd(
listA,listB)
gcd(
list,value)
remainder(
dividend, divisor)
remainder(
list, divisor)