Description Usage Arguments Value Examples
Arithmetic Operators for the "Ratio" class.
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
|
r1, r2, r |
Ratio objects |
n |
a positive integer number |
Returns the Ratio object resulting of the arithmetical operation.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.