atan2

(PHP 3 >= 3.0.5, PHP 4, PHP 5)

atan2 -- 两个参数的反正切

说明

float atan2 ( float y, float x )

本函数计算两个变量 xy 的反正切值。和计算 y / x 的反正切相似,只除了两个参数的符号是用来确定结果的象限之外。

本函数的结果为弧度,其值在 -PI 和 PI 之间(包括 -PI 和 PI)。

参见 acos()atan()


add a note add a note User Contributed Notes
reubs at idsdatanet dot com
24-May-2003 04:01
Just a note:

PHP's atan2 function receives parameters in (y,x) and Excel receives it in (x,y) format. Just in case you are porting formulas across. :)