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.
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.