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))
定義と使用法
このmath.tan()
メソッドは、数値のタンジェントを返します。
構文
math.tan(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
技術的な詳細
戻り値: | 数値のタンジェントを表すfloat 値 |
---|---|
Pythonバージョン: | 1.4 |