sin()
A function returning a sine from radians
sin()
is a system function returning a sine from an argument in radians.
sin()
was added in PostgreSQL 7.0.
Usage
sin (double precision
) →double precision
Use sind()
to provide degrees instead of radians.
Change history
- PostgreSQL 7.0
- added (commit a349733b)
Examples
Basic usage example for sin()
:
postgres=# SELECT sin(1); sin -------------------- 0.8414709848078965 (1 row)
References
- PostgreSQL documentation: Trigonometric Functions
Useful links
- How Sin() Works in PostgreSQL - article by Database.Guide
Categories
See also
sind(), asin()