mvp (version 1.0-8)

accessor: Accessor methods for mvp objects

Description

Accessor methods for mvp objects

Usage

vars(x)
powers(x)
coeffs(x)
coeffs(x) <- value

Arguments

x

Object of class mvp

value

Numeric vector of length 1

Details

Access the different parts of an mvp object. The constant term is technically a coefficient but is documented under constant.Rd.

See Also

constant

Examples

Run this code
# 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