Element-wise arithmetic with vectors of multivariate polynomials.

# S3 method for mpolyList
+(e1, e2)

# S3 method for mpolyList
-(e1, e2)

# S3 method for mpolyList
*(e1, e2)

Arguments

e1

an object of class mpolyList

e2

an object of class mpolyList

Value

An object of class mpolyList.

Examples

( ms1 <- mp( c("x", 'y') ) )
#> x #> y
( ms2 <- mp( c("y", '2 x^2') ) )
#> y #> 2 x^2
ms1 + ms2
#> x + y #> 2 x^2 + y
ms1 - ms2
#> x - y #> -2 x^2 + y
ms1 * ms2
#> x y #> 2 x^2 y
ms1^3
#> x^3 #> y^3