Integers

Integers

represents the domain of integers, as in xIntegers.

Details

  • xIntegers evaluates immediately if x is a numeric quantity.
  • Simplify[exprIntegers,assum] can be used to try to determine whether an expression is an integer under the given assumptions.
  • (x1|x2|)Integers and {x1,x2,}Integers test whether all xi are integers.
  • IntegerQ[expr] tests only whether expr is manifestly an integer (i.e. has head Integer).
  • Integers is output in StandardForm or TraditionalForm as TemplateBox[{}, Integers]. This typeset form can be input using ints.

Examples

open all close all

Basic Examples  (3)

Seven is an integer:

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

If is an integer, so is :

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

Properties & Relations  (3)

Introduced in 1999
(4.0)
|
Updated in 2017
(11.2)