PolynArithmetic: Polyn Arithmetic Operators

Description Usage Arguments Value Note See Also Examples

Description

Arithmetic Operators for the "Polyn" class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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

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

tolBasis documentation built on May 2, 2019, 3:44 a.m.