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 ( number $radian_angle )

Parameter

$radian_angle: Angle in radians

Return Value

Cosine of angle

Examples

<pre><?
  $pi=3.14159;
  print(cos($pi)."\r\n");   // result is -1.000000
  print(cos($pi*2)."\r\n"); // result is  1.000000
?></pre>

See Also

sin() - Return sine of a radian angle

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