308件ヒット
[1-100件を表示]
(0.052秒)
別のキーワード
種類
- インスタンスメソッド (194)
- 文書 (60)
- モジュール関数 (54)
ライブラリ
- ビルトイン (192)
- bigdecimal (12)
- cmath (18)
- matrix (26)
モジュール
- BigMath (12)
- CMath (18)
- Enumerable (24)
- Kernel (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- == (12)
- > (12)
- >= (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - Ruby用語集 (12)
- abs (12)
- abs2 (12)
- antisymmetric? (7)
- between? (12)
- cbrt (6)
- clamp (12)
- fdiv (3)
- finite? (9)
- log (24)
- magnitude (12)
- real? (24)
-
skew
_ symmetric? (7) -
slice
_ before (24)
検索結果
先頭5件
-
Complex
# abs -> Numeric (27124.0) -
自身の絶対値を返します。
...す。
以下の計算の結果を Float オブジェクトで返します。
sqrt(self.real ** 2 + self.imag ** 2)
//emlist[例][ruby]{
Complex(1, 2).abs # => 2.23606797749979
Complex(3, 4).abs # => 5.0
Complex('1/2', '1/2').abs # => 0.7071067811865476
//}
@see Complex#abs2... -
Complex
# abs2 -> Numeric (27124.0) -
自身の絶対値の 2 乗を返します。
...自身の絶対値の 2 乗を返します。
以下の計算の結果を返します。
self.real ** 2 + self.imag ** 2
//emlist[例][ruby]{
Complex(1, 1).abs2 # => 2
Complex(1.0, 1.0).abs2 # => 2.0
Complex('1/2', '1/2').abs2 # => (1/2)
//}
@see Complex#abs... -
Complex
# between?(min , max) -> bool (27100.0) -
@undef
@undef -
Complex
# magnitude -> Numeric (24024.0) -
自身の絶対値を返します。
...す。
以下の計算の結果を Float オブジェクトで返します。
sqrt(self.real ** 2 + self.imag ** 2)
//emlist[例][ruby]{
Complex(1, 2).abs # => 2.23606797749979
Complex(3, 4).abs # => 5.0
Complex('1/2', '1/2').abs # => 0.7071067811865476
//}
@see Complex#abs2... -
Complex
# ==(other) -> bool (21130.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Complex
# finite? -> bool (21106.0) -
自身の絶対値が有限値の場合に true を、そうでない場合に false を返します。
...自身の絶対値が有限値の場合に true を、そうでない場合に false を返します。
//emlist[例][ruby]{
(1 + 1i).finite? # => true
(Float::INFINITY + 1i).finite? # => false
//}
@see Complex#infinite?......実部と虚部の両方が有限値の場合に true を、そうでない場合に false を返します。
//emlist[例][ruby]{
(1 + 1i).finite? # => true
(Float::INFINITY + 1i).finite? # => false
//}
@see Complex#infinite?... -
Complex
# <(other) -> bool (21100.0) -
@undef
@undef -
Complex
# <=(other) -> bool (21100.0) -
@undef
@undef -
Complex
# >(other) -> bool (21100.0) -
@undef
@undef