TerminatedEvaluation

TerminatedEvaluation["reason"]

表示其计算超出全局内核会话的限制并被终止的表达式.

更多信息

  • 常见的原因包括 "IterationLimit""RecursionLimit".

范例

基本范例  (2)

递归被切断,递归表达式被 TerminatedEvaluation[] 替换:

函数 g 被设计为总是超过 $IterationLimit:

迭代被切断,表达式被 TerminatedEvaluation[] 替换:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_terminatedevaluation, organization={Wolfram Research}, title={TerminatedEvaluation}, year={2022}, url={https://reference.wolfram.com/language/ref/TerminatedEvaluation.html}, note=[Accessed: 17-November-2024 ]}