Return the arc tangent of different numbers with the atan() function:
<?php
echo(atan(0.50) . "<br>");
echo(atan(-0.50) . "<br>");
echo(atan(5) . "<br>");
echo(atan(-5) . "<br>");
echo(atan(100) . "<br>");
echo(atan(-100));
?>
Try it Yourself »
The atan() function returns the arc tangent of arg as a numeric value between -Pi/2 and Pi/2 radians.
atan(
arg);
Parameter | Description |
---|---|
arg | Required. Specifies an argument to process |
Return Value: | The arc tangent of arg in radians |
---|---|
Return Type: | Float |
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!