PostgreSQL ACOS() function
ACOS() function
The PostgreSQL acos() function is used to return the inverse cosine of a given argument.
Uses of ACOS() Function
- Trigonometric Calculations: Calculate the arc cosine value of a number.
- Geometry: Determine angles in geometric computations.
- Engineering Applications: Perform calculations involving angles and trigonometric functions.
- Scientific Research: Analyze data involving trigonometric relationships and functions.
Syntax:
acos(a)
PostgreSQL Version: 9.3
Pictorial presentation of PostgreSQL ACOS() function
Example 1: PostgreSQL ACOS() function
Code:
SELECT ACOS(0) AS "Acos (0)";
Sample Output:
Acos (0) ----------------- 1.5707963267949 (1 row)
Example 2: PostgreSQL ACOS() function
Code:
SELECT ACOS(1) AS "Acos (1)";
Sample Output:
Acos (1) ---------- 0 (1 row)
Example 3: PostgreSQL ACOS() function
Code:
SELECT ACOS(-1) AS "Acos (-1)";
Sample Output:
Acos (-1) ------------------ 3.14159265358979 (1 row)
Previous: ABS function
Next: ASIN function
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/PostgreSQL/acos-function.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics