======cos====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Return cosine of a radian angle ====Description==== float cos ( number $radian_angle ) ====Parameter==== $radian_angle: Angle in radians ====Return Values==== Float: Cosine of angle ====Examples==== $pi=3.14159; print(cos($pi)."\r\n"); // result is -1.000000 print(cos($pi*2)."\r\n"); // result is 1.000000 ?> ====See Also==== [[sin()]] - Return sine of a radian angle
$pi=3.14159; print(cos($pi)."\r\n"); // result is -1.000000 print(cos($pi*2)."\r\n"); // result is 1.000000 ?>