October 2005
Intermediate to advanced
372 pages
11h 35m
English
tan()
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));