るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.016秒)
トップページ > モジュール:Math[x] > バージョン:2.6.0[x] > クエリ:tan[x] > クエリ:atan2[x]

別のキーワード

  1. math tan
  2. _builtin tan
  3. cmath tan
  4. cmath tan!
  5. tan cmath

ライブラリ

検索結果

Math.#atan2(y, x) -> Float (72661.0)

y / x の逆正接関数(arctangent)の値をラジアンで返します。

...list[例][ruby]{
Math
.atan2(1,0) #=> 1.5707963267949
Math
.atan2(-1,0) #=> -1.5707963267949
//}

@raise TypeError y, x に数値以外を指定した場合に発生します。

@raise RangeError y, x に実数以外の数値を指定した場合に発生します。

@see Math.#atan, Math.#tan...

Math.#tan(x) -> Float (54343.0)

x の正接関数(tangent)の値を返します。

...実数(ラジアンで与えます)

@return 実数

@raise TypeError x に数値以外を指定した場合に発生します。

@raise RangeError x に実数以外の数値を指定した場合に発生します。

//emlist[例][ruby]{
Math
.tan(0) # => 0.0
//}

@see Math.#atan, Math.#atan2...

Math.#atan(x) -> Float (18340.0)

x の逆正接関数(arctangent)の値をラジアンで返します。

...rn 返される値の範囲は [-π/2, +π/2] です。

@raise TypeError x に数値以外を指定した場合に発生します。

@raise RangeError x に実数以外の数値を指定した場合に発生します。

//emlist[例][ruby]{
Math
.atan(0) # => 0.0
//}

@see Math.#atan2, Math.#tan...