How to use atan in PHP

This article describe about atan() Function in PHP.
  • 1349

atan() Function

The arctangent of a number as a numeric value between -PI/2 and PI/2 radians return by the atan() function.

Syntax

atan(a)

 

Parameter Description
a Required. A number

Example

<html>
<body>
<?php
echo(atan(0.60) . "<br />");
echo(atan(-0.60) . "<br />");
echo(atan(6) . "<br />");
echo(atan(12) . "<br />");
echo(atan(-6) . "<br />");
echo(atan(-12))
?>
</body>
</html>

 

Output


atanphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.