PHP : atan() function
Description
The atan() function returns the arc tangent of a number as a numeric value in radians.
Version:
(PHP 4 and above)
Syntax:
atan( number )
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
number | Numeric value. | Required | Float |
Return value:
The arc tangent of a number.
Value Type: Float.
Pictorial Presentation:
Example:
<?php
$val1= 0;
$val2=.4;
$zatan1=atan($val1);
$zatan2=atan($val2);
echo "Arc tangent of $val1 is $zatan1<br />";
echo "Arc tangent of $val2 is $zatan2<br />";
?>
Output:
Arc tangent of 0 is 0 Arc tangent of 0.4 is 0.380506377112
View the example in the browser
See also
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/php/function-reference/atan.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics