NegativeIntegers
represents the domain of strictly negative integers, as in x∈NegativeIntegers.
Details
- x∈NegativeIntegers evaluates immediately if x is a numeric quantity.
- Simplify[expr∈NegativeIntegers,assum] can be used to try to determine whether an expression is a negative integer under the given assumptions.
- (x1x2…)∈NegativeIntegers and {x1,x2,…}∈NegativeIntegers test whether all xi are negative integers.
- NegativeIntegers is output in StandardForm or TraditionalForm as . This typeset form can be input using nints.
Examples
open allclose allBasic Examples (3)
Scope (6)
Test domain membership of a numeric expression:
Make domain membership assumptions:
Specify the default domain over which a function should work:
Solve an optimization problem over the negative integers:
Test whether several numbers are negative integers:
If any number is explicitly not a negative integer, the result is False:
TraditionalForm formatting:
Applications (1)
Properties & Relations (3)
Membership in NegativeIntegers is equivalent to membership in Integers along with negativity:
NegativeIntegers is contained in NegativeReals and NegativeRationals:
NegativeIntegers is disjoint from NonPositiveIntegers and PositiveIntegers:
Text
Wolfram Research (2019), NegativeIntegers, Wolfram Language function, https://reference.wolfram.com/language/ref/NegativeIntegers.html.
CMS
Wolfram Language. 2019. "NegativeIntegers." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NegativeIntegers.html.
APA
Wolfram Language. (2019). NegativeIntegers. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NegativeIntegers.html