postgres=#
postgres=# -- sin(x): Returns the sine of x
postgres=# SELECT sin(pi() / 4) AS quarter_pi,
postgres-# sin(pi() / 2) AS half_pi;
quarter_pi | half_pi
-------------------+---------
0.707106781186547 | 1
(1 row)
postgres=#