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