Implicitization with Gröbner bases
Implicitization of a system of parametric equations (see example).
implicitization(nvariables, parameters, equations, relations)
nvariables
: number of variablesparameters
: character vector of the names of the parameters, or NULL
if there's no parameterequations
: named list of qspray
polynomials representing the parametric equationsrelations
: list of qspray
polynomials representing the relations between the variables and between the parameters, or NULL
if there is noneA list of qspray
polynomials.
library(qspray) # ellipse example #### # variables cost <- qlone(1) sint <- qlone(2) nvariables <- 2 # parameters a <- qlone(3) b <- qlone(4) parameters <- c("a", "b") # equations <- list( "x" = a * cost, "y" = b * sint ) relations <- list( cost^2 + sint^2 - 1 ) # implicitization(nvariables, parameters, equations, relations)