sin()


float sin ( float $arg )

Description

sin() returns the sine of $arg. The $arg is in radians.

※ available F/W version : all

Parameters

Return values

Returns the sine of $arg.

Example

<?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
?>

See also

asin()

Remarks

This function is identical to the PHP group’s sin() function.