coerce(other) -> [Complex, Complex][permalink][rdoc][edit]-
other を Complex に変換して [変換後の other, self] の配列を返します。
- [EXCEPTION]
TypeError: - 変換できないオブジェクトを指定した場合に発生します。
p Complex(1).coerce(2) # => [(2+0i), (1+0i)] - [EXCEPTION]
coerce(other) -> [Complex, Complex][permalink][rdoc][edit]other を Complex に変換して [変換後の other, self] の配列を返します。
TypeError:p Complex(1).coerce(2) # => [(2+0i), (1+0i)]