Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > cmathライブラリ > CMathモジュール > cos
cos(z) -> Float | Complex
z の余弦関数の値を返します。