Learn R Programming

distr6 (version 1.3.1)

Rationals: Set of Rationals

Description

The mathematical set of rational numbers.

Value

Returns R6 object of class Rationals.

Constructor

Rationals$new(dim = 1,...)

Constructor Arguments

Argument Type Details
dim numeric Dimension of the set.

Constructor Details

Generally the ... argument should be ignored, its primary use-case is for the child-classes.

Details

The set of Rationals is defined as the set of numbers that can be written as a fraction of two integers, i.e. $$Rationals = \{\frac{p}{q} | p,q \ \in \ Z\}$$ where \(Z\) is the set of integers.

See Also

listSpecialSets

Examples

Run this code
# NOT RUN {
Rationals$new()
Rationals$new(dim = 2)

# }

Run the code above in your browser using DataLab