Integer Functions

table of contents


iGcd
iLcm
iMod

iGcd

Syntax: iGcd(Exp-1, Exp-2[, Exp-3 … Exp-10)]
   (Exp-1 through Exp-10 all are integers.)
   iGcd(List-1, List-2[, List-3 … List-10)]
   (All elements of List-1 through List-10 are integers.)

  • The first syntax above returns the greatest common divisor for two to ten integers.
  • The second syntax returns, in list format, the greatest common divisor (GCD) for each of the elements in two to ten lists. When the arguments are {a, b}, {c, d}, for example, a list will be returned showing the GCD for a and c, and for b and d.

スティッキー
スティッキー
スティッキー

iLcm

Syntax: iLcm(Exp-1, Exp-2[, Exp-3 … Exp-10)]
   (Exp-1 through Exp-10 all are integers.)
   iLcm(List-1, List-2[, List-3 … List-10)]
   (All elements of List-1 through List-10 are integers.)

  • The first syntax above returns the least common multiple for two to ten integers.
  • The second syntax returns, in list format, the least common multiple (LCM) for each of the elements in two to ten lists. When the arguments are {a, b}, {c, d}, for example, a list will be returned showing the LCM for a and c, and for b and d.

スティッキー
スティッキー
スティッキー

iMod

Syntax: iMod(Exp-1/List-1, Exp-2/List-2[)]
   (Exp-1, Exp-2 and all of the elements of List-1 and List-2 must be integers.)

  • This function divides one or more integers by one or more other integers and returns the remainder(s).

スティッキー
スティッキー