NonNegativeIntegers

NonNegativeIntegers

表示非负整数域,如 xNonNegativeIntegers.

更多信息

  • 如果 x 是一个数值量,xNonNegativeIntegers 立即进行计算.
  • Simplify[exprNonNegativeIntegers,assum] 可用于尝试确定表达式在给定假设下是否为非负整数.
  • (x1|x2|)NonNegativeIntegers{x1,x2,}NonNegativeIntegers 测试是否所有的 xi 都是非负整数.
  • NonNegativeIntegersStandardFormTraditionalForm 格式输出,如 TemplateBox[{}, NonNegativeIntegers]. 可用 nnints 输入这种排版格式.

范例

打开所有单元关闭所有单元

基本范例  (3)

7 是一个非负整数:

如果 为整数,那么 是一个非负整数:

求 Pell 方程的非负整数解:

范围  (6)

测试数值表达式属于哪个域:

进行域成员假设:

指定函数应该使用的默认域:

在非负整数上求解优化问题:

测试几个数字是否为非负整数:

如果任意一个数字明显不是非负整数,则结果为 False

TraditionalForm 格式:

应用  (1)

测试是否为非负整数的成员是验证大型整数列表非负性的快速方法:

属性和关系  (3)

NonNegativeIntegers 中的成员等价于 Integers 中非负的成员:

NonNegativeIntegers 被包含于 NonNegativeRealsNonNegativeRationals 中:

NonNegativeIntegersNegativeIntegers 不相交:

它与 NonPositiveIntegers 相交:

Wolfram Research (2019),NonNegativeIntegers,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NonNegativeIntegers.html.

文本

Wolfram Research (2019),NonNegativeIntegers,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NonNegativeIntegers.html.

CMS

Wolfram 语言. 2019. "NonNegativeIntegers." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/NonNegativeIntegers.html.

APA

Wolfram 语言. (2019). NonNegativeIntegers. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/NonNegativeIntegers.html 年

BibTeX

@misc{reference.wolfram_2024_nonnegativeintegers, author="Wolfram Research", title="{NonNegativeIntegers}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/NonNegativeIntegers.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_nonnegativeintegers, organization={Wolfram Research}, title={NonNegativeIntegers}, year={2019}, url={https://reference.wolfram.com/language/ref/NonNegativeIntegers.html}, note=[Accessed: 22-November-2024 ]}