diff --git a/nutils/evaluable.py b/nutils/evaluable.py index 173876d63..33347a69c 100644 --- a/nutils/evaluable.py +++ b/nutils/evaluable.py @@ -2028,7 +2028,8 @@ def __init__(self, func:asarray, power:asarray): assert func.shape == power.shape self.func = func self.power = power - super().__init__(args=[func,power], shape=func.shape, dtype=float) + dtype = float if func.dtype == power.dtype == int else _jointdtype(func.dtype, power.dtype) + super().__init__(args=[func,power], shape=func.shape, dtype=dtype) def _simplified(self): if iszero(self.power):