Skip to content

ACOS

ACOS(X)Where X is a numeric value between -1 and 1, representing the cosine of the angle.

Section titled “ACOS(X)Where X is a numeric value between -1 and 1, representing the cosine of the angle.”
  • x: A numeric value ranging between -1 and 1 that represents the cosine of the angle for which the arc cosine is computed in MySQL’s ACOS(X) function.
SELECT ACOS(0.5);
1.0471975511966

This example demonstrates the ACOS function in MySQL. ACOS function returns the arc cosine of a number; applied to 0.5, it returns approximately 1.0471975511966.