Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > module Math > tan
tan(x) -> Float
x の正接関数の値をラジアンで返します。
tan(z) -> Complex
複素関数としてのtan関数の結果を返します。
tan関数は以下で定義されます。
tan(z) = sin(z) / cos(z)