gcd | R Documentation |
Greatest common divisor of two polynomials with rational coefficients.
gcd(qspray1, qspray2, utcf = FALSE)
qspray1 , qspray2 |
two |
utcf |
Boolean, whether to get the greatest common divisor up to a constant factor (this can be faster) |
A qspray
polynomial.
library(resultant)
x <- qlone(1)
y <- qlone(2)
g <- x^2 + 2*x*y + 1
p <- g * (y^2 + x^2)
q <- g * (y + x^3 + 2)
gcd(p, q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.