NonNegativeRationals

NonNegativeRationals

represents the domain of non-negative rational numbers, as in xNonNegativeRationals.

Details

  • xNonNegativeRationals evaluates immediately if x is a numeric quantity.
  • Simplify[exprNonNegativeRationals,assum] can be used to try to determine whether an expression corresponds to a non-negative rational number under the given assumptions.
  • (x1|x2|)NonNegativeRationals and {x1,x2,}NonNegativeRationals test whether all xi are non-negative rational numbers.
  • The domain of non-negative integers is taken to be a subset of the domain of non-negative rationals.
  • NonNegativeRationals is output in StandardForm or TraditionalForm as TemplateBox[{}, NonNegativeRationals]. This typeset form can be input using nnrats.

Examples

open allclose all

Basic Examples  (3)

2/3 is a non-negative rational number:

A sum of non-negative rational numbers is a non-negative rational number:

Find non-negative rational solutions of an equation:

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 non-negative rationals:

If any number is explicitly not a non-negative rational, the result is False:

TraditionalForm formatting:

Properties & Relations  (4)

Membership in NonNegativeRationals is equivalent to membership in Rationals and non-negativity:

NonNegativeRationals contains NonNegativeIntegers:

NonNegativeRationals is contained in NonNegativeReals, Algebraics and Complexes:

NonNegativeRationals is disjoint from NegativeRationals:

NonNegativeRationals intersects NonPositiveRationals:

Wolfram Research (2019), NonNegativeRationals, Wolfram Language function, https://reference.wolfram.com/language/ref/NonNegativeRationals.html.

Text

Wolfram Research (2019), NonNegativeRationals, Wolfram Language function, https://reference.wolfram.com/language/ref/NonNegativeRationals.html.

CMS

Wolfram Language. 2019. "NonNegativeRationals." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NonNegativeRationals.html.

APA

Wolfram Language. (2019). NonNegativeRationals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NonNegativeRationals.html

BibTeX

@misc{reference.wolfram_2024_nonnegativerationals, author="Wolfram Research", title="{NonNegativeRationals}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/NonNegativeRationals.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_nonnegativerationals, organization={Wolfram Research}, title={NonNegativeRationals}, year={2019}, url={https://reference.wolfram.com/language/ref/NonNegativeRationals.html}, note=[Accessed: 22-December-2024 ]}