PostgreSQL COS
From w3cyberlearnings
Contents |
Postgresql COS
This function returns the cosine of X, and X is given in radians.
Syntax COS
X is radians value.
COS(X);
Example 1
postgres=# SELECT COS(PI()); cos ----- -1 (1 row)
Example 2
postgres=# SELECT COS(6); cos ------------------- 0.960170286650366 (1 row)