summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2023-03-29 13:49:38 +0200
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2023-03-29 13:49:38 +0200
commita1c4555aaaf18f810ec84667e2e9848ea6da930c (patch)
treeb897f6fbd43324a4de8ae5ee1c596cb35a219f90
parentadd half newton polytope operator (diff)
downloadpolymatrix-a1c4555aaaf18f810ec84667e2e9848ea6da930c.tar.gz
polymatrix-a1c4555aaaf18f810ec84667e2e9848ea6da930c.zip
bugfix in divison operator
-rw-r--r--polymatrix/expression/mixins/divisionexprmixin.py4
1 files 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())