Home >>Python math Module >Python math.acos() Method
Python math.acos() Method returns the arc cosine value (in radians) of the given number and it is used to get the arc cosine number between -1 to 1.
Syntax:math.acos(x)
Parameter | Description |
---|---|
X | It is Required a number to find the arc cosine of, in the range -1 to 1. |
import math
print (math.acos(0.34))
print (math.acos(-0.23))
print (math.acos(1))
print (math.acos(0))
print (math.acos(-1))
import math
a = -1
print("acos(",a,") is = ", math.acos(a))
a = -1
print("acos(",a,") is = ", math.acos(a))
a = 0.256
print("acos(",a,") is = ", math.acos(a))
a = 1
print("acos(",a,") is = ", math.acos(a))