Learn R Programming

set6 (version 0.1.1)

NegReals: Set of Negative Real Numbers

Description

The mathematical set of negative real numbers, defined as the union of the set of negative rationals and negative irrationals. i.e. $$I^- \cup Q^-$$ where \(I^-\) is the set of negative irrationals and \(Q^-\) is the set of negative rationals.

Value

An R6 object of class NegReals.

Constructor

NegReals$new(zero = FALSE)

Constructor Arguments

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

Public Fields

Field Link

class class elements elements length length lower lower upper upper max max min min range range properties properties traits traits type type

Public Methods

Interval Methods Link
isSubinterval(x, proper = FALSE, all = FALSE) isSubinterval

Comparison Methods Link contains(x, all = FALSE, bound = NULL) contains equals(x, all = FALSE) equals isSubset(x, proper = FALSE, all = FALSE) isSubset Representation Methods Link strprint(n = 2) strprint print(n = 2) print summary(n = 2) summary

See Also

listSpecialSets

Other SpecialSets: Complex, ExtendedReals, Integers, Naturals, NegIntegers, NegRationals, PosIntegers, PosNaturals, PosRationals, PosReals, Rationals, Reals

Examples

Run this code
# NOT RUN {
NegReals$new()
# }

Run the code above in your browser using DataLab