Python/ref math tan
来自菜鸟教程
<languages />
Python math.tan()方法
例
查找不同数字(角度)的切线:
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
定义和用法
The
math.tan()
方法返回数字的切线。
句法
math.tan(x)
参数值
| 参数 | 描述 |
|---|---|
| x | 需要。查找正切的数字。如果该值不是数字,则返回TypeError |
技术细节
| 返回值: | A
|
| Python版本: | 1.4 |