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