t2:exp

exp


exp — Calculates the exponent of e

Description


fix32 exp(fix32 num);

Returns e raised to the power of num.

Note: e is the base of the natural system of logarithms, approximately 2.718282

Parameters


  • num: The number to process.

Return Value


e raised to the power of num.

Examples


Example #1 exp() example

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

See Also


t2/exp.txt · Last modified: 2016/11/13 06:35 by J2Kbr