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 的反正切弧度。

参见

添加备注

用户贡献的备注 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