Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > module Math > atan
atan(x) -> Floatx の逆正接関数の値をラジアンで返します。
atan(z) -> Complex [redefined by complex]
複素関数としてのatan関数(逆tan関数)の結果を返します。
atan関数は以下で定義されます。
atan(z) = i/2 * log((i+z) / (i-z))