ASIN() returns an angle in radians whose sine matches the supplied number. Inputs must be between -1 and 1.
Run this SELECT query directly in MySQL or phpMyAdmin. It uses fixed inputs so you can verify the result without creating a table.
SELECT DEGREES(ASIN(1)) AS angle_degrees;| angle_degrees |
|---|
| 90 |
ASIN(X) returns the arc sine of X in radians. Its valid input range is -1 through 1.
SELECT ASIN(0); -- Output: 0
SELECT ASIN(1); -- Output: 1.5707963267948966
SELECT ASIN(-2); -- Output: NULL
Use DEGREES() to convert the radian result to degrees.
SELECT DEGREES(ASIN(1)); -- Output: 90
SELECT DEGREES(ASIN(0)); -- Output: 0
SELECT DEGREES(ASIN(-1)); -- Output: -90
SELECT ASIN(X);
The output is the angle whose sine is X. Inputs outside -1 to 1 return NULL.
ASIN() accepts values from -1 to 1; outside that domain it returns NULL.
Does ASIN() return degrees?
No. Wrap ASIN() in DEGREES() if you want degrees.
Related: COT()
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.