Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > module Math > tanh
tanh(x) -> Floatx の双曲線正接関数の値を返します。
tanh(x) = sinh(x) / cosh(x)
tanh(z) -> Complex [redefined by complex]
複素関数としてのtanh関数(双曲線tan関数)の結果を返します。
tanh関数は以下で定義されます。
tanh(z) = sinh(z) / cosh(z)