.


Divya

atan() Function in PHP with Example


The php atan() function returns the arc tangent of arg as a numeric value between -Pi/2 and Pi/2 radians.

x − This is the floating point value.

This function returns the principal arc tangent of x, in the interval [-pi/2,+pi/2] radians and its a float type.

Example

<!DOCTYPE html>
<html>
<body>
<?php
echo(atan(0.3) . "<br>");
echo(atan(-0.3) . "<br>");
echo(atan(3) . "<br>");
echo(atan(-3) . "<br>");
echo(atan(100) . "<br>");
echo(atan(-100));
?>
</body>
</html>


.