Articles → Python → Math.Acos Function In PythonMath.Acos Function In PythonIn this article, we will discuss about math.acos function in pythonPurpose Math.acos is used to calculate arc cosine (inverse of cosine) of a number.Syntax Math.acos(num)Here num is a numeric value between -1 to 1. If the number is out of range then you will get following error - ValueError: math domain error. Example import math print("acos of a number is:", math.acos(0.6))Output Click to EnlargePosted By - Karan Gupta Posted On - Wednesday, April 24, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Math.acos(num)
import math print("acos of a number is:", math.acos(0.6))
Query/Feedback