represents the domain of strictly positive rational numbers, as in x∈PositiveRationals.
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.
- (x1|x2|…)∈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 all close allBasic Examples (3)
2/3 is a positive rational number:
Element[2 / 3, PositiveRationals]A sum of positive rational numbers is a positive rational number:
Simplify[x + y∈PositiveRationals, (x | y)∈PositiveRationals]Find positive rational solutions of an equation:
Reduce[(2x ^ 2 - 1)(4x ^ 2 - 1) == 0, x, PositiveRationals]Scope (5)
Test domain membership of a numeric expression:
Element[21 / 32, PositiveRationals]Element[0, PositiveRationals]Element[Pi, PositiveRationals]Make domain membership assumptions:
Refine[x^2 + 2 x y + (y^3/3)∈PositiveRationals, (x | y)∈PositiveRationals]Specify the default domain over which Reduce should work:
Reduce[(x ^ 2 - 4 / 9)(x ^ 3 - 2) == 0, x, PositiveRationals]Test whether several numbers are positive rationals:
(x | y | 1 / 2)∈PositiveRationalsIf any number is explicitly not a positive rational, the result is False:
{x, y, 0}∈PositiveRationalsTraditionalForm formatting:
PositiveRationals//TraditionalFormProperties & Relations (4)
Membership in PositiveRationals is equivalent to membership in Rationals along with positivity:
x∈PositiveRationalsPositiveRationals contains PositiveIntegers:
Refine[x∈PositiveRationals, x∈PositiveIntegers]PositiveRationals is contained in PositiveReals, Algebraics and Complexes:
Refine[x∈PositiveReals, x∈PositiveRationals]Refine[x∈Algebraics, x∈PositiveRationals]Refine[x∈ℂ, x∈PositiveRationals]PositiveRationals is disjoint from NonPositiveRationals and NegativeRationals:
Refine[x∈NonPositiveRationals, x∈PositiveRationals]Refine[x∈NegativeRationals, x∈PositiveRationals]Tech Notes
Related Guides
History
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
BibTeX
@misc{reference.wolfram_2026_positiverationals, author="Wolfram Research", title="{PositiveRationals}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/PositiveRationals.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_positiverationals, organization={Wolfram Research}, title={PositiveRationals}, year={2019}, url={https://reference.wolfram.com/language/ref/PositiveRationals.html}, note=[Accessed: 12-June-2026]}