(PHP 4, PHP 5, PHP 7)
Cosine
float cos ( float $arg )
cos() returns the cosine of the arg
parameter. The arg
parameter is in radians.
Parameters:
arg
An angle in radians
Returns:
The cosine of arg
Examples:
cos() example
1 2 3 4 5 | <?php echo cos (M_PI); // -1 ?> |
See also:
acos() -
sin() -
tan() -
Please login to continue.