Ruby 1.9.2 Reference Manual
> All Libraries
> Builtin Library
> module Math
> atan
module function Math.#atan
atan(x) -> Float
-
x の逆正接関数の値をラジアンで返します。
- [PARAM] x:
-
実数
- [RETURN]
-
返される値の範囲は [-π/2, +π/2] です。
- [EXCEPTION] TypeError:
-
x に数値以外を指定した場合に発生します。
- [EXCEPTION] RangeError:
-
x に実数以外の数値を指定した場合に発生します。