Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GCD

Greatest common divisor


Description

Find a monic polynomial of maximal degree that divides each of a set of polynomials exactly

Usage

GCD(...)

greatest_common_divisor(...)

## S3 method for class 'polynom'
GCD(...)

## S3 method for class 'polylist'
GCD(...)

Arguments

...

A list of polynomials or polylist objects

Value

A polynomial giving the greatest common divisor, as defined above

Examples

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))

PolynomF

Polynomials in R

v2.0-3
GPL-2
Authors
Bill Venables, with contribution by Kurt Hornik and Georgi Boshnakov
Initial release
2020-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.