3件ヒット
[1-3件を表示]
(0.052秒)
別のキーワード
ライブラリ
- ビルトイン (2)
-
rubygems
/ version (1)
クラス
- Complex (2)
-
Gem
:: Version (1)
キーワード
- correct? (1)
- rectangular (1)
検索結果
先頭3件
-
Complex
. rect(r , i = 0) -> Complex (54361.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(1, 2) # => (1+2i)
//}
@see Kernel.#Complex -
Complex
. rectangular(r , i = 0) -> Complex (18361.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(1, 2) # => (1+2i)
//}
@see Kernel.#Complex -
Gem
:: Version . correct?(version) -> bool (18340.0) -
version が正しいバージョンであれば true を返します。そうでなければ false を返します。
version が正しいバージョンであれば true を返します。そうでなければ false を返します。
//emlist[][ruby]{
p Gem::Version.correct?("9.1") # => true
p Gem::Version.correct?("incorrect") # => false
p Gem::Version.correct?(nil) # => true
# nil versions are discouraged and will be deprecated in Rubygems 4
# version が nil...