instance method Complex#rect

rect -> [Numeric, Numeric][permalink][rdoc]
rectangular -> [Numeric, Numeric]

実部と虚部を配列にして返します。



Complex(3).rect    # => [3, 0]
Complex(3.5).rect  # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]

[SEE_ALSO] Numeric#rect