PositiveRationals
represents the domain of strictly positive rational numbers, as in x∈PositiveRationals.
Details
- x∈PositiveRationals evaluates immediately if x is a numeric quantity.
- Simplify[expr∈PositiveRationals,assum] can be used to try to determine whether an expression corresponds to a positive rational number under the given assumptions.
- (x1x2…)∈PositiveRationals and {x1,x2,…}∈PositiveRationals test whether all xi are positive rational numbers.
- The domain of positive integers is taken to be a subset of the domain of positive rationals.
- PositiveRationals is output in StandardForm or TraditionalForm as . This typeset form can be input using prats.
Examples
open allclose allBasic Examples (3)
Scope (5)
Test domain membership of a numeric expression:
Make domain membership assumptions:
Specify the default domain over which Reduce should work:
Test whether several numbers are positive rationals:
If any number is explicitly not a positive rational, the result is False:
TraditionalForm formatting:
Properties & Relations (4)
Membership in PositiveRationals is equivalent to membership in Rationals along with positivity:
PositiveRationals contains PositiveIntegers:
PositiveRationals is contained in PositiveReals, Algebraics and Complexes:
PositiveRationals is disjoint from NonPositiveRationals and NegativeRationals:
Text
Wolfram Research (2019), PositiveRationals, Wolfram Language function, https://reference.wolfram.com/language/ref/PositiveRationals.html.
CMS
Wolfram Language. 2019. "PositiveRationals." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PositiveRationals.html.
APA
Wolfram Language. (2019). PositiveRationals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PositiveRationals.html