t2:log

log


log — Natural logarithm

Description


fix32 log(fix32 num);

Returns the natural logarithm of num.

Parameters


  • num: The value to calculate the logarithm for.

Return Value


The natural logarithm of num.

Examples


Example #1 log() example

init {
    printf("%.6f", log(1.648721)); // ~0.5
    printf("%.6f", log(298.87));   // ~5.7
}

See Also

t2/log.txt · Last modified: 2016/11/13 04:25 by J2Kbr