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 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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework