Mega Code Archive
Categories
/
PostgreSQL
/
Math Functions
Cos(x)
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=#