t2:acos

acos


acos — Arc cosine

Description


fix32 acos(fix32 num);

Returns the arc cosine of num in radians. acos() is the complementary function of cos(), which means that
num == cos(acos(num)).

Parameters


  • num: The number to process.

Return Value


The arc cosine of num in radians.

Examples


Example #1 acos() example

init {
    printf("%.6f", acos(0.5)); // ~1.0471975512
}

See Also

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