scipp.log10#

scipp.log10(x, *, out=None)#

Element-wise base 10 logarithm.

Parameters:
  • x (TypeVar(_T)) – Input data.

  • out (Variable | None, default: None) – Optional output buffer.

Returns:

TypeVar(_T) – Base 10 logarithm of the input.

Examples

Compute base 10 logarithm:

>>> import scipp as sc
>>> x = sc.array(dims=['x'], values=[1.0, 10.0, 100.0, 1000.0])
>>> sc.log10(x)
<scipp.Variable> (x: 4)    float64  [dimensionless]  [0, 1, 2, 3]

The input must be dimensionless and positive.