All variables in a multivariate polynomial
allvars.Rd
Returns a character vector containing all the variables present in a
mvp
object.
Examples
p <- rmvp(5)
p
#> mvp object algebraically equal to
#> 5 + 2 a c f + 3 a^2 d f^3 + 4 b^2 d f + 3 e
allvars(p)
#> [1] "a" "b" "c" "d" "e" "f"