| PosRationals | R Documentation |
The mathematical set of positive rational numbers, defined as the set of numbers that can be written as a fraction of two integers and are non-negative. i.e.
\\{\frac{p}{q} \ : \ p,q \ \in \ Z, \ p/q \ge 0, \ q \ne 0\\}
where Z is the set of integers.
The $contains method does not work for the set of Rationals as it is notoriously
difficult/impossible to find an algorithm for determining if any given number is rational or not.
Furthermore, computers must truncate all irrational numbers to rational numbers.
set6::Set -> set6::Interval -> set6::SpecialSet -> set6::Rationals -> PosRationals
new()Create a new PosRationals object.
PosRationals$new(zero = FALSE)
zerological. If TRUE, zero is included in the set.
A new PosRationals object.
clone()The objects of this class are cloneable with this method.
PosRationals$clone(deep = FALSE)
deepWhether to make a deep clone.
Other special sets:
Complex,
ExtendedReals,
Integers,
Logicals,
Naturals,
NegIntegers,
NegRationals,
NegReals,
PosIntegers,
PosNaturals,
PosReals,
Rationals,
Reals,
Universal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.