$AssertFunction
アサーションが失敗した場合に適用する関数を指定する.
例題
例 (1)
アサーションが失敗する場合は$AssertFunctionに割当てを行って動作を変えることができる.この関数はアサーションが失敗した場合に例外を投げる:
関連するガイド
-
▪
- 調整とデバッグ
関連するワークフロー
- スタックトレースを得る ▪
- 変数の値を動的に追跡する ▪
- 変数の中間値を表示する
テキスト
Wolfram Research (2010), $AssertFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/$AssertFunction.html.
CMS
Wolfram Language. 2010. "$AssertFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$AssertFunction.html.
APA
Wolfram Language. (2010). $AssertFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$AssertFunction.html
BibTeX
@misc{reference.wolfram_2025_$assertfunction, author="Wolfram Research", title="{$AssertFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/$AssertFunction.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_$assertfunction, organization={Wolfram Research}, title={$AssertFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/$AssertFunction.html}, note=[Accessed: 01-May-2026]}