Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Complex > **

instance method Complex#**

self ** other -> Complex

冪(べき)乗を計算します。

[PARAM] other:
自身を other 乗する数

例:

Complex('i') ** 2             # => (-1+0i)