Jump to: navigation, search

Php sin

From w3cyberlearnings

Contents

PHP function sin

This function returns the sine of X, and X is a radian.

Syntax sin

X is a number and it is a raidan.

sin(X)

Example 1

<?php
echo sin(pi());
echo "<br/>";
echo sin(M_PI_4);
echo "<br/>";
echo sin(3.5);
echo "<br/>";

?>

Output

1.2246467991474E-16
0.70710678118655
-0.35078322768962


Related Links


Navigation
Web
SQL
MISC
References