TrueQ

TrueQ[expr]

exprTrueの場合にはTrueを,その他の場合にはFalseを返す.

詳細

  • TrueQを使って,結果が明白ではない場合はテストが失敗であると「仮定」することができる.
  • TrueQ[expr]は,If[expr,True,False,False]と同値である.

例題

  (1)

TrueQは,入力が明示的にTrueである場合にのみTrueを返す:

Wolfram Research (1988), TrueQ, Wolfram言語関数, https://reference.wolfram.com/language/ref/TrueQ.html.

テキスト

Wolfram Research (1988), TrueQ, Wolfram言語関数, https://reference.wolfram.com/language/ref/TrueQ.html.

CMS

Wolfram Language. 1988. "TrueQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TrueQ.html.

APA

Wolfram Language. (1988). TrueQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TrueQ.html

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_trueq, organization={Wolfram Research}, title={TrueQ}, year={1988}, url={https://reference.wolfram.com/language/ref/TrueQ.html}, note=[Accessed: 15-November-2024 ]}