resultant | R Documentation |
Resultant of two polynomials with rational coefficients.
resultant(qspray1, qspray2, var = 1)
qspray1 , qspray2 |
two |
var |
integer indicating with respect to which variable the resultant
is desired (e.g. |
If both qspray1
and qspray2
are univariate polynomials,
the function returns a bigq
rational number.
Otherwise, it returns a qspray
polynomial that does not involve
the var
-th variable.
library(resultant)
x <- qlone(1)
y <- qlone(2)
f <- x^4 - x^3 + x^2 - 2*x*y^2 + y^4
g <- x - 2*y^2
resultant(f, g, var = 1)
resultant(f, g, var = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.