back to table · edit · history · where entries came from · files · download
616 bytes, as of the version from 2026-11-02 08:29 (current). Recorded here, not run.
from program import character_degree_sum
from generate import CharacterDegreePowerSum
from checks import independent_moment,written_bounds
from numberdb._write import to_text
from fractions import Fraction
from sage.rings.integer_ring import ZZ
g=CharacterDegreePowerSum()
assert character_degree_sum(1,3,'3')==10
for p in g.enumerate():
x=character_degree_sum(p['q'],p['n'],p['s'])
y=g.value(p,100)
if p['s']=='3': assert x==y
else: assert x.is_finite() and x.accuracy()>350 and x.overlaps(y)
print('Standalone Programs snippet: 154/154 matches; S3 cubic control 10; next B13 value also computed.')