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

real

関数 real は、複素数のブロックから実数の値を抜き出します。

構文

real(range)

引数 range には、複素数を指定します。

  • x = complex ({1,2,3,...,9,10}, {0,0,...,0}) の場合、real(x) は虚数を除外した {1,2,3,4,5,6,7,8,9,10}を返します。

関連情報

real

The real function strips the real values from a complex block of numbers.

Syntax

real (range)

The range argument consists of complex numbers.

Example

If x = complex ({1,2,3,…,9,10}, {0,0,…,0}), the operation real(x)returns {1,2,3,4,5,6,7,8,9,10}, leaving the imaginary values out.

関連情報