From a1c4555aaaf18f810ec84667e2e9848ea6da930c Mon Sep 17 00:00:00 2001 From: Michael Schneeberger Date: Wed, 29 Mar 2023 13:49:38 +0200 Subject: bugfix in divison operator --- polymatrix/expression/mixins/divisionexprmixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymatrix/expression/mixins/divisionexprmixin.py b/polymatrix/expression/mixins/divisionexprmixin.py index d84c09a..94bfec1 100644 --- a/polymatrix/expression/mixins/divisionexprmixin.py +++ b/polymatrix/expression/mixins/divisionexprmixin.py @@ -48,13 +48,13 @@ class DivisionExprMixin(ExpressionBaseMixin): def gen_monomial_terms(): for monomial, value in underlying_terms.items(): - yield monomial + (division_variable,), value + yield monomial + ((division_variable, 1),), value terms[row, col] = dict(gen_monomial_terms()) def gen_auxillary_terms(): for monomial, value in right.get_poly(0, 0).items(): - yield monomial + (division_variable,), value + yield monomial + ((division_variable, 1),), value auxillary_terms = dict(gen_auxillary_terms()) -- cgit v1.2.1