Unitize

Unitize[x]

x が零のときには0を,x がそれ以外の数値を持つときには1を返す.

詳細

  • Unitize[x,dx]は,dx より小さい x の値に対しては0を返す.
  • Unitize[x]は,x==0Trueを与えるときは常に0を返す.
  • Unitize[x]は,一般にPossibleZeroQを使い,記号的な形式で表された数を扱うことができる.
  • Unitizeは属性Listableを持つ.

例題

すべて開くすべて閉じる

  (2)

数値を1または0に変換する:

行列中の値を1または0で置換する:

構造を強調するプロットを示す:

アプリケーション  (1)

疎行列が構造的に対称かどうか確かめる:

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

テキスト

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_unitize, organization={Wolfram Research}, title={Unitize}, year={2007}, url={https://reference.wolfram.com/language/ref/Unitize.html}, note=[Accessed: 18-November-2024 ]}