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()



Follow us on Facebook and Twitter for latest update.




We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook