summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polymatrix/expression/mixins/subtractionexprmixin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/expression/mixins/subtractionexprmixin.py b/polymatrix/expression/mixins/subtractionexprmixin.py
index 41b2509..f80f7e8 100644
--- a/polymatrix/expression/mixins/subtractionexprmixin.py
+++ b/polymatrix/expression/mixins/subtractionexprmixin.py
@@ -50,7 +50,7 @@ class SubtractionExprMixin(ExpressionBaseMixin):
if math.isclose(new_poly[monomial], 0):
del new_poly[monomial]
else:
- new_poly[monomial] = coeff
+ new_poly[monomial] = -coeff
result[*entry] = new_poly
return state, init_poly_matrix(result, left.shape)