How to use acos() function to get the arc cosine of N in radians in Python

1 Answer

0 votes
import math

print("acos(0) = ", math.acos(0))
print("acos(-1) = ", math.acos(-1))
print("acos(1) = ", math.acos(1))
print("acos(0.5) = ", math.acos(0.5))


'''
run:

acos(0) =  1.5707963267948966
acos(-1) =  3.141592653589793
acos(1) =  0.0
acos(0.5) =  1.0471975511965979

'''

 



answered Mar 30, 2016 by avibootz

Related questions

1 answer 177 views
1 answer 223 views
1 answer 202 views
1 answer 176 views
2 answers 254 views
2 answers 260 views
...