File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -354,8 +354,8 @@ def _naive_ideal(self, ring):
354354 x = ring .gens ()
355355 binomials = []
356356 for row in self .ker ().matrix ().rows ():
357- xpos = prod (x [i ]** max (row [i ], 0 ) for i in range (0 , len (x )))
358- xneg = prod (x [i ]** max (- row [i ], 0 ) for i in range (0 , len (x )))
357+ xpos = prod (x [i ]** max (row [i ], 0 ) for i in range (len (x )))
358+ xneg = prod (x [i ]** max (- row [i ], 0 ) for i in range (len (x )))
359359 binomials .append (xpos - xneg )
360360 return ring .ideal (binomials )
361361
@@ -445,6 +445,6 @@ def _ideal_HostenSturmfels(self):
445445 J = self ._naive_ideal (ring )
446446 if J .is_zero ():
447447 return J
448- for i in range (0 , self .nvariables ()):
448+ for i in range (self .nvariables ()):
449449 J = self ._ideal_quotient_by_variable (ring , J , i )
450450 return J
You can’t perform that action at this time.
0 commit comments