RatioArithmetic: Ratio Arithmetic Operators

Description Usage Arguments Value Examples

Description

Arithmetic Operators for the "Ratio" class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'Ratio'
r1 + r2
## S3 method for class 'Ratio'
r1 - r2
## S3 method for class 'Ratio'
r1 * r2
## S3 method for class 'Ratio'
r1 / r2
## S3 method for class 'Ratio'
r ^ n

Arguments

r1, r2, r

Ratio objects

n

a positive integer number

Value

Returns the Ratio object resulting of the arithmetical operation.

Examples

1
2
3
r1 <- Ratio(1, 1+B)
r2 <- Ratio(A-B, (A+B)^2)
r3 <- r1 - r2

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