関連するキーワード
種類
- 特異メソッド (4)
- インスタンスメソッド (4)
ライブラリ
- ビルトイン (8)
検索結果
先頭4件
-
Complex
# rect -> [Numeric , Numeric] (18120) -
実部と虚部を配列にして返します。
...実部と虚部を配列にして返します。
例:
Complex(3).rect # => [3, 0]
Complex(3.5).rect # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]... -
Complex
. rect(r , i = 0) -> Complex (18114) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
例:
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(......1, 2) # => (1+2i)
@see Kernel.#Complex... -
Complex
# rectangular -> [Numeric , Numeric] (6120) -
実部と虚部を配列にして返します。
...実部と虚部を配列にして返します。
例:
Complex(3).rect # => [3, 0]
Complex(3.5).rect # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]... -
Complex
. rectangular(r , i = 0) -> Complex (6114) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
例:
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(......1, 2) # => (1+2i)
@see Kernel.#Complex...
