るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.052秒)

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric arg
  4. numeric abs2

クラス

キーワード

検索結果

Numeric#angle -> 0 | Math::PI (27110.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Complex#arg...

Complex#angle -> Float (18110.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...

Numeric#arg -> 0 | Math::PI (12010.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Complex#arg...

Numeric#phase -> 0 | Math::PI (12010.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Complex#arg...

Complex#arg -> Float (3010.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...

絞り込み条件を変える

Complex#phase -> Float (3010.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...