PositiveIntegers

PositiveIntegers

represents the domain of strictly positive integers, as in xPositiveIntegers.

Details

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

Examples

open all close all

Basic Examples  (3)

Seven is a positive integer:

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

If is an integer, then is a positive integer:

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

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