Accessor methods for mvp objects
vars(x) powers(x) coeffs(x) coeffs(x) <- value
Object of class mvp
mvp
Numeric vector of length 1
Access the different parts of an mvp object. The constant term is technically a coefficient but is documented under constant.Rd.
constant.Rd
constant
# NOT RUN { a <- rmvp(5) vars(a) powers(a) coeffs(a) coeffs(a) <- 1 # A simpler object coeffs(a) <- 0 # The zero polynomial # }
Run the code above in your browser using DataCamp Workspace