Ratio Relational Operators

Description

Relational operators for the Ratio class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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'
r1 > r2
## S3 method for class 'Ratio'
r1 >= r2

Arguments

r1, r2

Ratio objects

Value

Returns the value resulting of the relational operation. The order operators are not implemented and return NA.

Examples

1
Ratio(1,1+B)==Ratio(1,B+1)