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.

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