asind() 是一个系统函数,它返回一个数字的反正弦(反余弦),单位是度。
asind() 在 PostgreSQL 9.6 中被添加。
用法
asind (double precision) →double precision
输入值必须在 1 和 -1 之间。
变更历史
- PostgreSQL 9.6
- 添加(提交 e1bd684a)
示例
asind() 的基本用法示例
postgres=# SELECT asind(0.5);
asind
-------
30
(1 row)
提供无效的输入值
postgres=# SELECT asind(2); ERROR: input is out of range
参考资料
- PostgreSQL 文档: 三角函数
