Name
atan()
Synopsis
float asin ( float num
)
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.
$atan1 = atan(0.4346); $atan2 = atan(tan(80));
Get PHP in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.