scipp.pow#

scipp.pow(base, exponent)#

Element-wise power.

If the base has a unit, the exponent must be scalar in order to get a well-defined unit in the result.

Parameters
Raises

scipp.DTypeError – If the dtype does not have a power, e.g., if it is a string.

Returns

Union[Variable, DataArray, Dataset, Unit] – base raised to the power of exp.