Last data update: 2014.03.03

R: Polyn Arithmetic Operators
Polyn ArithmeticR Documentation

Polyn Arithmetic Operators

Description

Arithmetic Operators for the "Polyn" class.

Usage

## S3 method for class 'Polyn'
p1 + p2
## S3 method for class 'Polyn'
p1 - p2
## S3 method for class 'Polyn'
p1 * p2
## S3 method for class 'Polyn'
p / x
## S3 method for class 'Polyn'
p ^ n

Arguments

p1, p2, p

Polyn objects

x

a real number or a Polyn object

n

a positive integer number

Value

Returns the Polyn object resulting of the arithmetical operation.

Note

If the argument x is a Polyn object, a Ratio object is returned.

See Also

See also Ratio

Examples

p1 <- 1+B
p2 <- (A+B)^2
p3 <- p1*p2

Results