Learn R Programming

distr6 (version 1.3.2)

NegReals: Set of Negative Reals

Description

The mathematical set of negative real numbers.

Value

Returns R6 object of class NegReals.

Constructor

NegReals$new(dim = 1, zero = FALSE)

Constructor Arguments

Argument Type Details
dim numeric Dimension of the set.
zero = FALSE logical If TRUE, zero is included in the set.

Details

The set of Negative Reals is defined as the union of the set of negative rationals and negative irrationals, i.e. $$NegReals = I^- \cup Q^-$$ where \(I^-\) is the set of negative irrationals and \(Q^-\) is the set of negative rationals.

\(0\) may or may not be included (depending on the zero argument).

See Also

listSpecialSets

Examples

Run this code
# NOT RUN {
NegReals$new()
NegReals$new(zero = TRUE)
NegReals$new(dim = 2)

# }

Run the code above in your browser using DataLab