Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

MySQL ASIN() function

ASIN() function

MySQL ASIN() returns the arc sine of a number. The function returns NULL when the value of the number is not between the ranges -1 to 1.

Syntax:

ASIN(N)

Argument:

Name Description
N A number whose arch sine value is to be retrieved.

Syntax Diagram:

MySQL ASIN() Function - Syntax Diagram

MySQL Version: 5.6


Example:

Code:

SELECT ASIN(4);

Explanation:

The above MySQL statement will return NULL because the number specified as an argument is exceeding the range which can be accepted.

Sample Output:

mysql> SELECT ASIN(4);
+---------+
| ASIN(4) |
+---------+
|    NULL | 
+---------+
1 row in set (0.02 sec)

Example: ASIN() function using fractional number

Code:

SELECT ASIN(.4);

Explanation:

The above MySQL statement will return the sine value of the number specified as an argument.

Sample Output:

mysql> SELECT ASIN(.4);
+-------------------+
| ASIN(.4)          |
+-------------------+
| 0.411516846067488 | 
+-------------------+
1 row in set (0.01 sec)

All Mathematical Functions

MySQL Mathematical Functions, slide presentation

Previous: ACOS()
Next: ATAN2()