t2:tan

tan


tan — Tangent

Description


fix32 tan(fix32 rad);

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

Parameters


  • rad: A value in radians.

Return Value


The tangent of rad.

Examples


Example #1 tan() example

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

See Also

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