cos

(FW >= 1.0)

cos - return cosine of an angle

Description

number cos( number angle )
Return cosine of the angle specified in radians

Parameters

angle

radian angle

Return Value

cosine of angle

Examples

<? 

$pi=3.14159;
print(cos($pi)); // result is -1
print(cos($pi*2)); // result is 1
?>