Function signature
acos(ratio)
Return value
Returns the angle value corresponding to the cosine value.
Overview
- The Python function acos() from the math module is an inverse trigonometric function that returns the angle between adjacent and the hypotenuse.
- The input to the acos() function is the cosine value of a given angle.

Example
# Example python program that returns the
# angle values between the adjacent and the hypotenuse
# from the given cosine values.
import math
# Popular cosine values in fractions (for the angles)
# 0, 30, 45, 60, 90
cosineValues = [1, math.sqrt(3)/2, math.sqrt(2)/2, 1/2, 0]
# Find the arccos values
angles = []
for cosine in cosineValues:
angle = math.acos(cosine)
angles.append(angle)
print("Angle in radians:")
for angle in angles:
print(angle)
print("Angle in degrees:")
for angle in angles:
print(math.degrees(angle))Output
Angle in radians:
0.0
0.5235987755982989
0.7853981633974483
1.0471975511965976
1.5707963267948966
Angle in degrees:
0.0
30.000000000000004
45.0
59.99999999999999
90.0