User Tools

Site Tools


uphp:functions:cos

This is an old revision of the document!


cos

WMPRO, WMMINI FW > 1.0 WMMEGA FW > 2.0

Return cosine of a radian angle

Description

float cos ( numeric $radian_angle )

Parameters

radian_angle: Angle in radians

Return Value

Cosine of angle

Example

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

See Also

sin() - Return sine of a radian angle

uphp/functions/cos.1487603999.txt.gz · Last modified: 2021/09/13 05:56 (external edit)