Number acos() Method in Python 3:
The acos() method returns the arc cosine of x in
radians.
Syntax
import
math
acos(x)
|
Note: This function is not accessible directly, so
we need to import the math module and
then we need to call this function using
the math static object.
Parameters
x - This must be a numeric value in the range
-1 to 1. If x is greater than 1 then it will
generate 'math domain error'.
Return Value
This method returns arc cosine of x, in
radians.
Example
The following example shows the usage of
the acos() method.
and the output is: