back to table · edit · history · where entries came from · files · download
705 bytes, as of the version from 2026-11-17 11:56 (current). Recorded here, not run.
# Direct independent use of the defining finite sum, at c=1+3*omega.
import numberdb.sage
from sage.rings.number_field.number_field import CyclotomicField
from sage.rings.complex_arb import ComplexBallField
K = CyclotomicField(3); omega = K.gen(); c = 1+3*omega
ideal = K.ideal(c); F = ideal.residue_field('t')
E = CyclotomicField(21); zeta = E.gen(); G = E(0)
roots = {F(omega**j): j for j in range(3)}
for x in ideal.residues():
if F(x) != 0:
j = roots[F(x)**2]
exponent = (7*j + 3*int(7*(x/c).trace())) % 21
G += zeta**exponent
B = ComplexBallField(512)
print(9*B(3).sqrt()*B(G.conjugate())/B(7).sqrt())
# tau((1+3*omega)/lambda^3), also at the representative (a,b)=(-1,-3).