Converts an algebraic system to a polynome by eliminating variables
createPolynom.Rd
Converts an algebraic system to a polynome by eliminating variables
Arguments
- f
is a function defining the algebraic system
- elimVars
is a character vector defining the variables which have to be eliminated
Examples
f <- function() {
h + hd + -h0 = 0
d + hd -d0 = 0
hd / (h*d) -kd = 0
}
elimVars <- c("h", "d")
createPolynom(f, elimVars)
#> (hd^2 + (-h0 - d0) * hd + d0 * h0) * kd - hd