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:
Output:
Arc tangent of 0 is 0 Arc tangent of 0.4 is 0.380506377112
View the example in the browser
See also