Education Technology

Solution 35934: Correcting a Domain Error When Using the lcm() or gcd() Command on the TI-83 Family, TI-84 Plus Family, and TI-Nspire™ in TI-84 Plus Mode?

Why do I get a Domain error when using the lcm() or gcd() command on the TI-83 family, TI-84 Plus family, and TI-Nspire in TI-84 Plus mode?

The input for lcm() and gcd() are either 2 non-negative integers or 2 lists of non-negative integers.

The proper syntax for the gcd() and lcm() functions are listed below.

gcd(valueA,valueB)
gcd({listA},{listB})
gcd({list}, value)

lcm(valueA,valueB)
lcm({listA},{listB})
lcm({list}, value)



Please Note: If any of the values used are negative numbers, decimal numbers, or numbers larger than 1E12, it will give a domain error. To correct this, you will need to change any incorrect values inputted to a non-negative, non-decimal integer less than 1E12.

Please see the TI-83 family and TI-84 Plus family guidebooks for additional information.

Additional Note: TI-Nspire users using the TI-84 Plus Keypad may refer to the TI-84 Plus family guidebook.