t2:cos

cos


cos — Cosine

Description


fix32 cos(fix32 rad);

Returns the cosine of the rad parameter. The rad parameter is in radians.

Parameters


  • rad: A value in radians.

Return Value


The cosine of rad.

Examples


Example #1 cos() example

init {
    printf("%.6f", cos(PI)); // ~(-1)
}

See Also

t2/cos.txt · Last modified: 2016/11/13 03:09 by J2Kbr