Learn R Programming

set6 (version 0.1.1)

Reals: Set of Real Numbers

Description

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

Value

An R6 object of class Reals.

Constructor

Reals$new(...)

Constructor Arguments

Argument Type Details

Constructor Details

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

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, NegReals, PosIntegers, PosNaturals, PosRationals, PosReals, Rationals

Examples

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

Run the code above in your browser using DataLab