diff options
Diffstat (limited to '')
-rw-r--r-- | mdpoly/algebra.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdpoly/algebra.py b/mdpoly/algebra.py index 1e4b775..1fbabda 100644 --- a/mdpoly/algebra.py +++ b/mdpoly/algebra.py @@ -168,7 +168,8 @@ class PolyRingExpr(Expr): return PolyAdd(other, self) def __neg__(self): - return PolyMul(self._constant(-1), self) + # FIXME: Create PolyNeg? + return PolyMul(PolyConst(-1), self) def __mul__(self, other): self._assert_same_algebra(self, other) |