Learn R Programming

PolynomF (version 2.0-8)

LCM: Lowest Common Multiple

Description

For a list of polynomials, find the lowest degree monic polynomial into which each divides exactly

Usage

LCM(...)

lowest_common_multiple(...)

# S3 method for polynom LCM(...)

# S3 method for polylist LCM(...)

Value

A polynomial giving the lowest common multiple

Arguments

...

A list of polynomials or polylist objects

Examples

Run this code
p <- poly_calc(0:5)
r <- poly_calc(1:6)
greatest_common_divisor(p, r)
solve(greatest_common_divisor(p, r))
lowest_common_multiple(p, r)
solve(lowest_common_multiple(p, r))

Run the code above in your browser using DataLab