Calculates the arc cosine (inverse cosine) of a value. The result is in radians, ranging from 0 to π.
DOUBLEDiperbarui: 13 Jun 2026ACOS(x)A value between -1 and 1
1 SELECT ACOS(1) AS acos_1;
Arc cosine of 1 equals 0 radians.
1 SELECT ACOS(-1) AS pi_value;
Arc cosine of -1 equals π.
1 SELECT 6371 * ACOS( 2 COS(RADIANS(lat1)) * COS(RADIANS(lat2)) * 3 COS(RADIANS(lon2 - lon1)) + 4 SIN(RADIANS(lat1)) * SIN(RADIANS(lat2)) 5 ) AS distance_km;
Haversine formula for calculating distance between coordinates.
Sudah paham ACOS? Latih langsung di browser
Latihan interaktif, langsung di browser.
DEGREES