NonNegativeIntegers

NonNegativeIntegers

represents the domain of non-negative integers, as in xNonNegativeIntegers.

Details

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

Examples

open all close all

Basic Examples  (3)

Seven is a non-negative integer:

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

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

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

Find non-negative 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)