NonPositiveIntegers

NonPositiveIntegers

represents the domain of non-positive integers, as in xNonPositiveIntegers.

Details

  • xNonPositiveIntegers evaluates immediately if x is a numeric quantity.
  • Simplify[exprNonPositiveIntegers,assum] can be used to try to determine whether an expression is a non-positive integer under the given assumptions.
  • (x1|x2|)NonPositiveIntegers and {x1,x2,}NonPositiveIntegers test whether all xi are non-positive integers.
  • NonPositiveIntegers is output in StandardForm or TraditionalForm as TemplateBox[{}, NonPositiveIntegers]. This typeset form can be input using npints.

Examples

open all close all

Basic Examples  (3)

Negative seven is a non-positive integer:

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

If is an integer, is a non-positive integer:

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

Find non-positive integer solutions of a Pell equation:

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

Scope  (6)

Applications  (1)

Properties & Relations  (3)

Introduced in 2019
(12.0)