PostgreSQL/Math Functions/cos

Материал из SQL эксперт
Перейти к: навигация, поиск

cos(x): Returns the cosine of x

   <source lang="sql">

postgres=# -- cos(x): Returns the cosine of x postgres=# SELECT cos(pi()) AS cos_pi, cos(0) AS cos_zero;

cos_pi | cos_zero

+----------
    -1 |        1

(1 row) postgres=#

      </source>