September 2001
Intermediate to advanced
768 pages
32h 45m
English
float tan(float value) Provides the tangent for the given radians.
Returns:
Tangent of a value in radians
Description:
Returns the tangent of a value in radians.
Version:
PHP 3, PHP 4
See also:
acos() asin() atan() atan2() cos() sin()
Example:
$rads = 2 * (pi() / 3); // a 120 degree arc $rtan = tan($trad); echo "The tangent of $rads is $rtan\n"; |
Read now
Unlock full access