Name
tan()
Synopsis
float tan ( float num
)
Calculates the tangent value of the number provided as its only parameter. The parameter should be passed as radiansâyou should use deg2rad()
to convert degrees to radians.
$tan1 = tan(10); $tan2 = tan(deg2rad(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.