complex.imag
code:Lua
n = textmodule.complex.imag(c)
textmodule.complex.imag(c, i)
モジュール
complex
引数
table:1
変数 型 概要
1 c userdata
複素数クラス
table:2
変数 型 概要
1 c userdata
複素数クラス
2 i number 設定する値
返り値
table:1
変数 型 概要
1 n number 虚部
概要
1. 複素数クラス
c
の虚部を取得する。
2. 複素数クラス
c
の虚部を
i
に設定する。