Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > module Math > atan

module function Math.#atan

atan(x) -> Float

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

[PARAM] x:
実数
[RETURN]
返される値の範囲は [-π/2, +π/2] です。
atan(z) -> Complex [redefined by complex]

複素関数としてのatan関数(逆tan関数)の結果を返します。

atan関数は以下で定義されます。

atan(z) = i/2 * log((i+z) / (i-z))
[PARAM] z:
複素数