Mwnci acos() function

Syntax

acos(cosine)

Parameters

Parameter Description
cosine Required. A number in the range -1 to 1. If x is not a number, it returns a TypeError

Description

The acos() method returns the arc cosine value of a number.

Note: The parameter passed in acos() must lie between -1 to 1.

Tip: acos(-1) will return the value of PI.

Example

print(acos(0.55))
print(acos(-0.55))
print(acos(0))
print(acos(1))
print(acos(-1))


0.9884320889261531
2.15316056466364
1.5707963267948966
0.0
3.141592653589793