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:
base (_T) – Base of the exponential.
exponent (VariableLike | float) – Raise
base
to this power.
- Raises:
scipp.DTypeError – If the dtype does not have a power, e.g., if it is a string.
- Returns:
_T –
base
raised to the power ofexp
.