Skip to content

Commit

Permalink
Merge pull request LMFDB#5661 from roed314/weierstrass_model
Browse files Browse the repository at this point in the history
Deal with Weierstrass models where the coefficient of w^2 is not 1
  • Loading branch information
roed314 authored Sep 5, 2023
2 parents 2282497 + 2b4b449 commit dba2eeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lmfdb/modular_curves/web_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ def formatted_model(m):
m["equation"][1], m["equation"][0] = m["equation"]
C = R3(m["equation"][0])
F = R4(m["equation"][1])
if F.monomial_coefficient(w**2) != -1:
if F.monomial_coefficient(w**2).constant_coefficient() > 0:
F *= -1
assert F.monomial_coefficient(w**2) == -1
lines = [
latex(elt)
for elt in [
Expand Down

0 comments on commit dba2eeb

Please sign in to comment.