mpolyArithmetic {mpoly}R Documentation

Arithmetic with multivariate polynomials

Description

Arithmetic with multivariate polynomials

Usage

## S3 method for class 'mpoly'
e1 + e2

## S3 method for class 'mpoly'
e1 - e2

## S3 method for class 'mpoly'
e1 * e2

## S3 method for class 'mpoly'
e1 ^ e2

## S3 method for class 'mpolyList'
e1 ^ e2

Arguments

e1

an object of class mpoly

e2

an object of class mpoly

Value

object of class mpoly

Examples


p <- mp("x + y")
p + p
p - p
p * p
p^2
p^10


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




[Package mpoly version 1.1.1 Index]