日本語 English
株式会社ヒューリンクス
TEL:03-5642-8384
営業時間:9:00-17:30

imaginary (img)

関数 imaginary は、複素数の範囲から虚数部を返します。

構文

img(block)

引数の範囲は複素数で構成されます。

  • x = {{1,2,3,4,5,6,7,8,9,10}, {0,0,0,....0,0}} の場合、img(x){0,0,0,0,0,0,0,0,0,0} を返します。
  • x = {{1.0,-0.75, 3.1}, {1.2,2.1,-1.1}} の場合、img(x){1.2,2.1,-1.1} を返します。

関連情報

imaginary (img)

The imaginary function strips the imaginary values out of a range of complex numbers.

Syntax

img(block)

The range is made up of complex numbers.

Example

If x = {{1,2,3,4,5,6,7,8,9,10}, {0,0,0,….0,0}}, the operation img(x) returns {0,0,0,0,0,0,0,0,0,0}.

If x = {{1.0,-0.75, 3.1}, {1.2,2.1,-1.1}}, the operation img(x) returns {1.2,2.1,-1.1}.

関連情報