log10
Syntax
log10(X)
Parameters
X is a scalar/vector/matrix/table.
Details
Return the logarithm of X to the base 10.
Difference from Python’s numpy.log10: Both functions calculate the
base-10 logarithm. DolphinDB supports scalars, pairs, vectors, matrices, and tables.
numpy.log10 is a ufunc and supports broadcasting, complex
numbers, out, where, and other ufunc arguments.
Differences from TA-Lib LOG10: DolphinDB log10
supports scalars, vectors, pairs, matrices, and tables, whereas TA-Lib
LOG10 only supports one-dimensional arrays.
Examples
log10(100);
// output: 2
log10(0 10 100 1000 NULL);
// output: [,1,2,3,]
log10(10 100 1000 10000$2:2);
| #0 | #1 |
|---|---|
| 1 | 3 |
| 2 | 4 |
