Skip to content
Property Value
Hex Value $BB08
Categories
Localizations
  • FR: ppcm(

lcm(

Overview

Returns the least common multiple of valueA and valueB, which can be real numbers or lists.

Availability: Token available everywhere.

Syntax

lcm(valueA,valueB)

Arguments

NameTypeOptional
valueAreal|expression|real[]
valueBreal|expression|real[]

Location

math, NUM, 8:lcm(


Description

Returns the least common multiple (LCM) of two nonnegative integers; lcm(a,b) is equivalent to a__b/gcd(a,b). Also works on lists.

lcm(8,6)
     24
lcm({9,12},6)
     {18 12}
lcm({14,12},{6,8})
     {42 24}

Error Conditions

  • ERR:DIM MISMATCH is thrown if the arguments are two lists that don't have the same number of elements.
  • ERR:DOMAIN is thrown if the arguments aren't positive integers (or lists of positive integers) less than 1e12.

Source: parts of this page were written by the following TI|BD contributors: DarkerLine, GoVegan, thornahawk.

History

Calculator OS Version Description
TI-83 0.01013 Added
Authors: Adrien Bertrand