iDevOS CALC "EXP" Command

Get the exponential function of a variable.

Description

CALC( y, a, "EXP" );  // y = exp(a) = exponential function of a

This command returns the value y which is the exponential function of a.

Parameters

y
Calculation result.
Parameter type: entity name of a numeric variable (eg U8, S32, FLT3 etc).
a
Input value.
Parameter type: immediate number, or entity name of a numeric variable (eg U8, S32, FLT3 etc).
"EXP"
CALC command operator.
Parameter type: immediate string.

Examples

Example 1

VAR(d,  0.0,  FLT4);
VAR(a1, 1.27, FLT4);
VAR(a2, 8,    S32);

CALC(d, a1, "EXP"); // d = 3.5609
CALC(d, a2, "EXP"); // d = 2980.9580