Return the tangent of different numbers in PHP
Description
The following code shows how to return the tangent of different numbers.
Example
//w w w.j a v a 2 s .c o m
<?php
echo(tan(M_PI_4) . "<br>");
echo(tan(0.50) . "<br>");
echo(tan(-0.50) . "<br>");
echo(tan(5) . "<br>");
echo(tan(10) . "<br>");
echo(tan(-5) . "<br>");
echo(tan(-10));
?>
The code above generates the following result.