Computes the least common multiple of the input values.
An integer.
An integer.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Least common multiple of x and y.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
LCM(x,y) is the smallest integer m for which there exist integers c and d such that
To compute LCM(x,y), consider the prime factorizations of x and y:
where pi are all the prime factors of x and y. If pi does not occur in a factorization, the corresponding exponent is 0. LCM(x,y) then is given by:
The prime factorizations of 12 and 30 are given by:
so
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices