iDevOS CALC "LOG" Command
Get the natural logarithm of a value.
Description
CALC( y, a, "LOG" ); // y = log(a) = natural logarithm of a
This command returns the value y which is the natural logarithm of a.
Parameters
y- Calculation result.
Parameter type: entity name of a numeric variable (egU8,S32,FLT3etc). a- Input value.
Parameter type: immediate number, or entity name of a numeric variable (egU8,S32,FLT3etc). "LOG"- 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, "LOG"); // d = 0.2390 CALC(d, a2, "LOG"); // d = 2.0794

