Articles → Python → Math.Acos Function In PythonMath.Acos Function In PythonIn this article, we will discuss the math.acos function in Python.Purpose The math.acos is used to calculate the 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 the following error → ValueError: math domain error. Example import math print("acos of a number is:", math.acos(0.6))Output Posted 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