Learn R Programming

mpoly (version 1.1.1)

mpolyArithmetic: Arithmetic with multivariate polynomials

Description

Arithmetic with multivariate polynomials

Usage

# S3 method for mpoly
+(e1, e2)

# S3 method for mpoly -(e1, e2)

# S3 method for mpoly *(e1, e2)

# S3 method for mpoly ^(e1, e2)

# S3 method for mpolyList ^(e1, e2)

Arguments

e1

an object of class mpoly

e2

an object of class mpoly

Value

object of class mpoly

Examples

Run this code
# NOT RUN {
p <- mp("x + y")
p + p
p - p
p * p
p^2
p^10


mp("(x+1)^10")
p + 1
2*p



# }

Run the code above in your browser using DataLab