NegativeRationals

NegativeRationals

represents the domain of strictly negative rational numbers, as in xNegativeRationals.

Details

  • xNegativeRationals evaluates immediately if x is a numeric quantity.
  • Simplify[exprNegativeRationals,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 TemplateBox[{}, NegativeRationals]. This typeset form can be input using nrats.

Examples

open all close all

Basic Examples  (3)

-2/3 is a negative rational number:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=

Find negative rational solutions of an equation:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Properties & Relations  (4)

Introduced in 2019
(12.0)