scipp.exp#

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

Element-wise exponential.

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

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

Returns:

TypeVar(_T) – e raised to the power of the input.

Examples

Compute exponential function:

>>> import scipp as sc
>>> x = sc.array(dims=['x'], values=[0.0, 1.0, 2.0])
>>> sc.exp(x)
<scipp.Variable> (x: 3)    float64  [dimensionless]  [1, 2.71828, 7.38906]

The input must be dimensionless.