t2:sin

sin


sin — Sine

Description


fix32 sin(fix32 rad);

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

Parameters


  • rad: A value in radians.

Return Value


The sine of rad.

Examples


Example #1 sin() example

init {
    printf("%.6f", sin(45.0));          // ~0.850903524534
    printf("%.6f", sin(deg2rad(45.0))); // ~0.707106781187
}

See Also

t2/sin.txt · Last modified: 2016/11/13 03:06 by J2Kbr