scipp.log#
- scipp.log(x, *, out=None)#
Element-wise natural logarithm.
- Parameters:
- Returns:
TypeVar(_T) – Base e logarithm of the input.
Examples
Compute natural logarithm:
>>> import scipp as sc >>> x = sc.array(dims=['x'], values=[1.0, 2.718, 7.389]) >>> sc.log(x) <scipp.Variable> (x: 3) float64 [dimensionless] [0, 0.999896, 1.99999]
The input must be dimensionless and positive.