ALOG10 Function
Returns the logarithm to the base 10 of x.
enabled.
Usage
result = ALOG10(x)
Input Parameters
x—The expression that is > 0 which is evaluated. This expression can be an array.
Returned Value
result—The base 10 logarithm for x.
Keywords
None.
Discussion
ALOG10 is defined by:
y = log10x
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.
ALOG10 handles complex numbers in the following way:
Alog10(x) = Complex(log10(|x|, arctan(x)))
Examples
x = ALOG10(10)
PRINT, x ; PV-WAVE prints: 1
x = ALOG10(100)
PRINT, x ; PV-WAVE prints: 2
x = ALOG10(50)
PRINT, x ; PV-WAVE prints: 1.69897