Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AndrewVSutherland
GitHub Repository: AndrewVSutherland/lmfdb
Path: blob/main/scripts/lfunctions/insert_zeros.py
1128 views
1
2
import sys
3
4
from sage.all import DirichletGroup
5
6
import sage.libs.lcalc.lcalc_Lfunction as lc
7
8
from lmfdb import base
9
C = base.getDBConnection()
10
db = C.Lfunctions
11
12
first_zeros = db.first_zeros_testing
13
14
first_zeros.drop()
15
16
for q in range(3, 1500):
17
print(q)
18
sys.stdout.flush()
19
G = DirichletGroup(q)
20
for n in range(len(G)):
21
if G[n].is_primitive():
22
L = lc.Lfunction_from_character(G[n])
23
z = L.find_zeros_via_N(1)[0]
24
first_zeros.insert({'zero': float(z), 'modulus': int(q), 'character': int(n)})
25
26