Python math.atan()メソッド
例
異なる数値のアークタンジェントを返します。
#Import math Library
import math
#fReturn the arc tangent of
different numbers
print (math.atan(0.39))
print (math.atan(67))
print (math.atan(-21))
定義と使用法
このmath.atan()
メソッドは、数値(x)のアークタンジェントを-PI / 2とPI / 2ラジアンの間の数値として返します。
アークタンジェントは、 xの逆タンジェント関数としても定義されます。ここで、xは計算されるアークタンジェントの値です。
構文
math.atan(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A positive or negative number. If x is not a number, it returns error a TypeError |
技術的な詳細
戻り値: | float 数値のアークタンジェントを表す-PI / 2からPI / 2までの値 |
---|---|
Pythonバージョン: | 1.6.1 |