ALOG Function
Returns the natural logarithm of x.
enabled.
Usage
Input Parameters
x—The expression that is > 0 which is evaluated. This expression can be an array.
Returned Value
result—The natural logarithm of x.
Keywords
None.
Discussion
ALOG is defined as:
y = logex
Double-precision floating-point and complex values return a result with the same data type. All other data types are converted to single-precision floating-point and yield a floating-point result.
ALOG handles complex numbers in the following way:
Alog(x) ≡ Complex(loge(|x|, arctan(x)))
Examples
x = ALOG(10) PRINT, x ; PV-WAVE prints: 2.30259 x = ALOG(1) PRINT, x ; PV-WAVE prints: 0