View source: R/integralDivision.R
integralDivision | R Documentation |
Integral division (division without remainder) of two polynomials with rational coefficients.
integralDivision(qspray1, qspray2, check = TRUE)
qspray1 , qspray2 |
two |
check |
Boolean, whether to check that |
If check=TRUE
, this returns NULL
if qspray2
does not divide qspray1
, otherwise this returns a qspray
polynomial, the quotient of qspray1
by qspray2
.
If check=FALSE
, this always returns a qspray
polynomial,
which is the quotient of qspray1
by qspray2
if
qspray2
divides qspray1
, otherwise it is an undefined
polynomial. So you can use check=FALSE
only when you are sure that
qspray2
divides qspray1
.
univariateDivision
,
qsprayDivision
.
library(resultant)
x <- qlone(1)
y <- qlone(2)
q <- x^2 + 2*x*y + 1
qspray1 <- q * (x^4 + y^2 + 2)
qspray2 <- x^4 + y^2 + 2
integralDivision(qspray1, qspray2) == q # should be TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.