float sin ( float $arg )
sin() returns the sine of $arg. The $arg is in radians.
※ available F/W version : all
Returns the sine of $arg.
<?php
$rad = 1.0;
$val1 = sin($rad);
$val2 = asin($val1);
echo "sin($rad) = $val1\r\n"; // OUTPUT: sin(1) = 0.8414709848079
echo "asin($val1) = $val2\r\n"; // OUTPUT: asin(0.8414709848079) = 1
?>
This function is identical to the PHP group’s sin() function.