NonPositiveRationals

NonPositiveRationals

represents the domain of non-positive rational numbers, as in xNonPositiveRationals.

Details

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

Examples

open all close all

Basic Examples  (3)

-2/3 is a non-positive rational number:

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

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

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

Find non-positive rational solutions of an equation:

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

Scope  (5)

Properties & Relations  (4)

Introduced in 2019
(12.0)