Description
The atan() function calculates the arc tangent value of the number provided as its only parameter, essentially reversing the operation of tan(). The return value is in radians—you should use the rad2deg() to convert radians to degrees.
Syntax:
asin(float $num): float
Parameters
Parameter | Description |
---|---|
num | The argument to process. |
Return Values
Returns the calculated arctangent for the given argument in radians.
Examples
Example 1:
$tan = 10.0; echo "The arctangent of $tan is ", atan($tan);
Example 2:
$atan1 = atan(0.4346); $atan2 = atan(tan(80));