Skip to content

Commit

Permalink
Merge pull request #6010 from SamSchiavone/hgm
Browse files Browse the repository at this point in the history
Changing table and polynomial format
  • Loading branch information
roed314 authored Apr 23, 2024
2 parents d94a05f + 22987ff commit 235a427
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lmfdb/hypergm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def render_hgm_webpage(label):
for j in range(len(locinfo)):
locinfo[j] = [primes[j]] + locinfo[j]
# locinfo[j][2] = poly_with_factored_coeffs(locinfo[j][2], primes[j])
locinfo[j][2] = list_to_factored_poly_otherorder(locinfo[j][2], vari='x')
locinfo[j][2] = list_to_factored_poly_otherorder(locinfo[j][2], vari='T')
hodge = data['hodge']
famhodge = data['famhodge']
prop2 = [
Expand Down
3 changes: 2 additions & 1 deletion lmfdb/hypergm/templates/hgm-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ <h2>Browse</h2>
</div>

<div>
<table border=1 cellpadding=5 class='right_align_table'>
<!--<table border=1 cellpadding=5 class='right_align_table'>-->
<table style="margin-left:1%;" border="1" class="ntdata">
<tr>
<th>$w$ \ $d$</th>
<th>1</th> <th>3</th> <th>5</th> <th>7</th> <th class="rightline">9</th>
Expand Down
49 changes: 33 additions & 16 deletions lmfdb/hypergm/templates/hgm-show-motive.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<table>
<tr><td>{{KNOWL('hgm.type', 'Type')}}:<td>&nbsp;&nbsp;<td>{{info.type}}
<tr><td>{{KNOWL('hgm.hodge_vector', 'Hodge vector')}}:<td>&nbsp;&nbsp;<td>${{info.hodge}}$
<tr><td>{{KNOWL('hgm.familyhodgevector', 'Family Hodge vector')}}:<td>&nbsp;&nbsp;<td>${{info.famhodge}}$
<tr><td>{{KNOWL('hgm.hodge_vector', 'Family Hodge vector')}}:<td>&nbsp;&nbsp;<td>${{info.famhodge}}$
<tr><td>{{KNOWL('hgm.signature', 'Signature')}}:<td>&nbsp;&nbsp;<td>{{info.sig}}
<tr><td>{{KNOWL('hgm.conductor', 'Conductor')}}:<td>&nbsp;&nbsp;<td>${{info.cond}}$
<tr><td>{{KNOWL('hgm.determinant', 'Determinant character')}}:<td>&nbsp;&nbsp;<td>$\chi_{ {{info.det}} }$
Expand All @@ -36,21 +36,38 @@

<p><h2> {{ KNOWL('hgm.local_information', 'Local information') }}</h2>

<p>
<table>
<tr> <th> $p$ <th> $c_p$ <th> $F_p(x)$ <th> 2 <th> 3 <th> 5 <th> 7 <th> $\card{\textrm{Gal}(F_p(x))}$ <th> $|D|$
{% for loc in info.locinfo: %}
<tr><td> ${{loc[0]}}$:
<td>${{loc[1]}}$
<td>${{loc[2]}}$
<td>${{loc[3]}}$
<td>${{loc[4]}}$
<td>${{loc[5]}}$
<td>${{loc[6]}}$
<td>${{loc[7]}}$
<td>${{loc[8]}}$
{% endfor %}
<tr><td><td><td><td>${{info.lcms[0]}}$<td> ${{info.lcms[1]}}$ <td>${{info.lcms[2]}}$ <td>${{info.lcms[3]}}$
<p>
<table style="margin-left:1%;" border="0" class="ntdata">
<!--TODO make better knowl for charpol of Frob-->
<thead>
<tr>
<th colspan="3"></th>
<th colspan="4">Order of semisimple Frobenius at $\ell$</th>
<th colspan="2"></th>
</tr>
<tr style="border-bottom: 1px solid #000;">
<th> $p$ </th>
<th> {{ KNOWL('hgm.conductor', '$c_p$') }} </th>
<th> {{ KNOWL('modlgal.frobenius_charpoly', '$F_p(T)$') }} </th>
<th> 2 <th> 3 <th> 5 <th> 7 </th>
<th> $\card{\operatorname{Gal}(F_p(T))}$ </th>
<th> {{ KNOWL('hgm.local_discriminant', '$D$') }} </th>
</thead>
{% for loc in info.locinfo: %}
<tr><td> ${{loc[0]}}$
<td>${{loc[1]}}$
<td>${{loc[2]}}$
<td>${{loc[3]}}$
<td>${{loc[4]}}$
<td>${{loc[5]}}$
<td>${{loc[6]}}$
<td>${{loc[7]}}$
<td>${{loc[8]}}$
{% endfor %}
<tr style="border-top: 2px solid #000;">
<!--<td><td><td><td>${{info.lcms[0]}}$<td> ${{info.lcms[1]}}$ <td>${{info.lcms[2]}}$ <td>${{info.lcms[3]}}$-->
<td colspan=3>LCMs<td>${{info.lcms[0]}}$<td> ${{info.lcms[1]}}$ <td>${{info.lcms[2]}}$ <td>${{info.lcms[3]}}$ <td colspan=2>
</tr>
</table>


Expand Down
14 changes: 8 additions & 6 deletions lmfdb/hypergm/templates/hgm_family.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,24 @@
<p>
<p><h2> {{ KNOWL('hgm.defining_parameter_ppart', title='$p$-parts of defining parameters') }} </h2>
<p>
<table>
<tr> <th> $p$ <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$A_p$') }} <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$B_p$') }} <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$C_p$') }}
<table style="margin-left:1%;" border="0" class="ntdata">
<thead> <th> $p$ <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$A_p$') }} <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$B_p$') }} <th> {{ KNOWL('hgm.defining_parameter_ppart', title='$C_p$') }}
</thead>
{% for p, Ap, Bp, Cp in family.ppart %}
<tr>
<td> ${{p}}$
<td> ${{Ap}}$
<td> ${{Bp}}$
<td> ${{Cp}}$
</tr>
{% endfor %}

</table>

<p>
<p>
<h2> {{ KNOWL('hgm.monodromy', title='Monodromy groups') }} modulo $\ell$</h2>
<table>
<h2> {{ KNOWL('hgm.monodromy', title='Monodromy groups') }} modulo $\ell$ </h2>
<table style="margin-left:1%;" border="0" class="ntdata">
<tr>
<th> $\ell$ </th>
<th> {{ KNOWL('hgm.monodromy_index', title='Index') }} </th>
Expand Down Expand Up @@ -84,7 +86,7 @@ <h2> {{ KNOWL('hgm.monodromy', title='Monodromy groups') }} modulo $\ell$</h2>
</table>
{% if family.defaultp %}
<p>
<h2>{{KNOWL('hgm.good_prime', title="Good")}} {{KNOWL('hgm.euler_factor', title="Euler factors")}} </h2>
<h2>{{KNOWL('hgm.good_prime', title="Good")}} {{KNOWL('lfunction.euler_product', title="Euler factors")}} </h2>
<form id='euler_factors'>
<table>
<tr>
Expand Down Expand Up @@ -113,7 +115,7 @@ <h3>${{var}}={{value}}$</h3>
{% else %}
{% set colspan = 2 %}
{% endif %}
<th class='weight'> $F_p(T)$ </th>
<th class='weight'> {{ KNOWL('modlgal.frobenius_charpoly', '$F_p(T)$') }} </th>
{% if family.weight > 0 %}
{% set colspan = colspan + 1 %}
<th class='weight'> Ordinary? </th>
Expand Down

0 comments on commit 235a427

Please sign in to comment.