w3resource

PostgreSQL ASIN() function

ASIN() function

The PostgreSQL asin() is used to return the inverse sine of a given argument.

Uses of ASIN() Function
  • Trigonometric Calculations: Calculate the arc sine 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:

asin(a)

PostgreSQL Version: 9.3

Pictorial presentation of PostgreSQL ASIN() function

pictorial presentation of PostgreSQL ASIN() function

Example 1: PostgreSQL ASIN() function

Code:

SELECT ASIN(0) AS "Asin (0)";

Sample Output:

 Asin (0)
----------
        0
(1 row)

Example 2: PostgreSQL ASIN() function

Code:

SELECT ASIN(1) AS "Asin (1)";

Sample Output:

    Asin (1)
-----------------
 1.5707963267949
(1 row)

Example 3: PostgreSQL ASIN() function

Code:

SELECT ASIN(-1) AS "Asin (-1)";

Sample Output:

    Asin (-1)
------------------
 -1.5707963267949
(1 row)

Previous: ACOS function
Next: ATAN function



Become a Patron!

Follow us on Facebook and Twitter for latest update.

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://www.w3resource.com/PostgreSQL/asin-function.php