atan

(PHP 4, PHP 5, PHP 7, PHP 8)

atan逆正接(アークタンジェント)

説明

atan(float $num): float

num のアークタンジェントをラジアンで返します。 atan()tan() の逆関数です。 つまり、atan() の定義域にある num の全ての値に対して、$num == tan(atan($num)) が成立します。

パラメータ

num

処理する引数。

戻り値

num のアークタンジェントをラジアンで返します。

参考

  • tan() - 正接(タンジェント)
  • atanh() - 逆双曲線正接(アークハイパボリックタンジェント)
  • asin() - 逆正弦(アークサイン)
  • acos() - 逆余弦(アークコサイン)

add a note

User Contributed Notes 1 note

up
9
Anonymous
10 years ago
Contrary to the current description, it should hold y == tan(atan(y)) for ALL y.
However, x == atan(tan(x)) only holds for those x which are in the range of atan, which are those x with -pi/2 < x < pi/2.

Of course, those equalities are limited by precision. On my machine
tan(atan(1000)) returns 1000.0000000001.
atan(tan(0)) returns 0 (correct).
atan(tan(M_PI)) returns -1.2246467991474E-16 instead of 0.
To Top