Skip to content

Commit

Permalink
more honest reporting of analytic Sha status for ECQ
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCremona committed Mar 7, 2024
1 parent 53f364d commit 2b47fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lmfdb/elliptic_curves/templates/ec-curve.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ <h2> {{ KNOWL('ec.q.bsdconjecture', title='BSD invariants') }}</h2>
{% if data.mwbsd.sha > 1 %}
= {{data.mwbsd.sha2}}
{% endif %}
{% if data.rank > 1 %}
({{ KNOWL('ec.q.analytic_sha_value',title="rounded") }})
{% else %}
{% if data.mwbsd.sha_is_exact %}
({{ KNOWL('ec.q.analytic_sha_value',title="exact") }})
{% else %}
({{ KNOWL('ec.q.analytic_sha_value',title="rounded") }})
{% endif %}
{% endif %}
</td>
Expand Down
1 change: 1 addition & 0 deletions lmfdb/elliptic_curves/web_ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def make_mwbsd(self):
mwbsd['reg'] = self.regulator
mwbsd['sha'] = self.sha
mwbsd['sha2'] = latex_sha(self.sha)
mwbsd['sha_is_exact'] = self.rank==0 and self.conductor<500000
for num in ['reg', 'special_value', 'real_period', 'area']:
mwbsd[num] = RR(mwbsd[num])
except AttributeError:
Expand Down

0 comments on commit 2b47fe1

Please sign in to comment.