python中三角函数
Python三角函数/方法 (Python Trigonometric functions/methods)
In python programming language, there are some of the built-in functions which are defined in math module – they can be used for Trigonometric calculations, python has following Trigonometric functions, which are used to various purposes.
在python编程语言中 , 数学模块中定义了一些内置函数–它们可用于三角函数计算,python具有以下三角函数,可用于各种用途。
Python中的三角函数列表 (List of Trigonometric functions in Python)
Trigonometric functions
Description
Example
math.cos()
It returns the cosine of the number (in radians).
math.cos(x)
math.sin()
It returns the sine of the number (in radians).
math.sin(x)
math.tan()
It returns the tangent of the number in radians.
math.tan(x)
math.acos()
It returns the arc cosine of the number in radians.
math.acos(x)