From 1ec26ed4d93743b7c40d63e15e2f030521d36b5a Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 27 May 2024 14:24:41 +0200 Subject: Fix bug in SubtractionExpr --- polymatrix/expression/mixins/subtractionexprmixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1