|
inlineconstexpr |
Computes the least common multiple of the inputs.
Defined in Header
Parameters
p
, n
: real arguments.
Return value
Returns the least common multiple of |p| and |n|.
p
and n
can be of any real values type, but when the types are not integral the least common multiple is defined only if p
and n
elements are [flint](eve::is_flint). If any of the arguments is not flint the result is undefined.Optimized Conversion Call If the input types are integral, the result is susceptible to overflow, but will never be greater than the product of the two input values which will be representable in the upgraded integral type. The call upgrade_(lcm)(a,b)
returns a correct result in the upgraded type if the upgraded type is available.
Example