The mathematical set of rational numbers.
Returns R6 object of class Rationals.
Rationals$new(dim = 1,...)
Argument | Type | Details |
dim |
numeric | Dimension of the set. |
Generally the ...
argument should be ignored, its primary use-case
is for the child-classes.
The set of Rationals is defined as the set of numbers that can be written as a fraction
of two integers, i.e.
# NOT RUN {
Rationals$new()
Rationals$new(dim = 2)
# }
Run the code above in your browser using DataLab