最速Rubyリファレンスマニュアル検索!
すべて(11)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
11件ヒット
[1-11件を表示]
(0.020秒)
トップページ
>
クラス:
Complex
>
:
Rational
>
:*
別のキーワード
_builtin rational
rational **
json/add/rational to_json
json/add/rational json_create
rational *
ライブラリ
ビルトイン
(11)
検索結果
先頭1件
Complex
#
*(other) -> Complex
Complex
#
*(other) -> Complex
(18125.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
積を計算します。
...
積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex
(1, 2)
*
2 # => (2+4i)
Complex
(1, 2)
*
Complex
(2, 3) # => (-4+7i)
Complex
(1, 2)
*
Rational
(1, 2) # => ((1/2)+(1/1)
*
i)
//}
...