Jump to: navigation, search

Php tan

From w3cyberlearnings

Contents

PHP function tan

This function returns the tangent of X, and X is a given radians.

Syntax tan

X is in radians.

tan(X)

Example 1

<?php
echo tan(M_PI_4);
echo "<br/>";
echo tan(M_PI_2);
echo "<br/>";
echo tan(pi());
?>

Output

1
1.6331239353195E+16
-1.2246467991474E-16


Related Links


Navigation
Web
SQL
MISC
References