We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562f7f8 commit d216c0fCopy full SHA for d216c0f
src/sage/schemes/riemann_surfaces/riemann_surface.py
@@ -1962,10 +1962,7 @@ def is_hyperelliptic(self):
1962
for j in range(i, self.genus)]
1963
1964
# Find the monomials present and their coefficients
1965
- mons = []
1966
- for p in pairs:
1967
- mons += p.monomials()
1968
- mons = list(set(mons))
+ mons = {mon for p in pairs for mon in p.monomials()}
1969
CM = Matrix([[p.monomial_coefficient(mon) for p in pairs]
1970
for mon in mons])
1971
# test the number of linearly independent pairs
0 commit comments