represents the domain of strictly negative rational numbers, as in x∈NegativeRationals.
NegativeRationals
represents the domain of strictly negative rational numbers, as in x∈NegativeRationals.
Details
- x∈NegativeRationals evaluates immediately if x is a numeric quantity.
- Simplify[expr∈NegativeRationals,assum] can be used to try to determine whether an expression corresponds to a negative rational number under the given assumptions.
- (x1|x2|…)∈NegativeRationals and {x1,x2,…}∈NegativeRationals test whether all xi are negative rational numbers.
- The domain of negative integers is taken to be a subset of the domain of negative rationals.
- NegativeRationals is output in StandardForm or TraditionalForm as
. This typeset form can be input using
nrats
.
Examples
open all close allBasic Examples (3)
-2/3 is a negative rational number:
Element[-2 / 3, NegativeRationals]A sum of negative rational numbers is a negative rational number:
Simplify[x + y∈NegativeRationals, (x | y)∈NegativeRationals]Find negative rational solutions of an equation:
Reduce[(2x ^ 2 - 1)(4x ^ 2 - 1) == 0, x, NegativeRationals]Scope (5)
Test domain membership of a numeric expression:
Element[-21 / 32, NegativeRationals]Element[0, NegativeRationals]Element[-Pi, NegativeRationals]Make domain membership assumptions:
Refine[-x^2 - 2 x y + (y^3/3)∈NegativeRationals, (x | y)∈NegativeRationals]Specify the default domain over which Reduce should work:
Reduce[(x ^ 2 - 4 / 9)(x ^ 3 - 2) == 0, x, NegativeRationals]Test whether several numbers are negative rationals:
(x | y | -1 / 2)∈NegativeRationalsIf any number is explicitly not a negative rational, the result is False:
{x, y, 0}∈NegativeRationalsTraditionalForm formatting:
NegativeRationals//TraditionalFormProperties & Relations (4)
Membership in NegativeRationals is equivalent to membership in Rationals and negativity:
x∈NegativeRationalsNegativeRationals contains NegativeIntegers:
Refine[x∈NegativeRationals, x∈NegativeIntegers]NegativeRationals is contained in NegativeReals, Algebraics and Complexes:
Refine[x∈NegativeReals, x∈NegativeRationals]Refine[x∈Algebraics, x∈NegativeRationals]Refine[x∈ℂ, x∈NegativeRationals]NegativeRationals is disjoint from NonNegativeRationals and PositiveRationals:
Refine[x∈NonNegativeRationals, x∈NegativeRationals]Refine[x∈PositiveRationals, x∈NegativeRationals]Tech Notes
Related Guides
History
Text
Wolfram Research (2019), NegativeRationals, Wolfram Language function, https://reference.wolfram.com/language/ref/NegativeRationals.html.
CMS
Wolfram Language. 2019. "NegativeRationals." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NegativeRationals.html.
APA
Wolfram Language. (2019). NegativeRationals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NegativeRationals.html
BibTeX
@misc{reference.wolfram_2026_negativerationals, author="Wolfram Research", title="{NegativeRationals}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/NegativeRationals.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_negativerationals, organization={Wolfram Research}, title={NegativeRationals}, year={2019}, url={https://reference.wolfram.com/language/ref/NegativeRationals.html}, note=[Accessed: 12-June-2026]}