mvp: Multivariate polynomials, mvp objects

Description Usage Arguments Details Author(s) Examples

Description

Create, test for, an coerce to, mvp objects

Usage

1
2
3
4

Arguments

vars

List of variables comprising each term of a mvp object

powers

List of powers corresponding to the variables of the vars argument

coeffs

Numeric vector corresponding to the coefficients to each element of the var and powers lists

x

Object possibly of class mvp

...

Further arguments, passed to the methods

Details

Function mvp() is the formal creation mechanism for mvp objects. However, it is not very user-friendly; it is better to use as.mvp() in day-to-day use.

Function is_ok_mvp() checks for consistency of its arguments.

Author(s)

Robin K. S. Hankin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mvp(list("x" , c("x","y"), "a",c("y","x")),list(1,1:2,3,c(-1,4)),1:4)

## Note how the terms appear in an arbitrary order, as do
## the symbols within a term.


kahle  <- mvp(
    vars   = split(cbind(letters,letters[c(26,1:25)]),rep(seq_len(26),each=2)),
    powers = rep(list(1:2),26),
    coeffs = 1:26
)

## again note arbitrary order of terms and symbols within a term

mvp documentation built on Feb. 4, 2019, 5:05 p.m.