generate.sage

back to table · edit · history · where entries came from · files · download

300 bytes, as of the version from 2026-08-14 21:32 (current). Recorded here, not run.

from utils.utils import numbers_to_yaml
import yaml
import os

path = 'data/Polynomials/Cyclotomic_polynomials'

numbers = {int(n): str(cyclotomic_polynomial(n)) for n in [1..100]}

filename = os.path.join(path, 'polynomials.yaml')
yaml.dump(numbers, stream = open(filename, 'w'), sort_keys = False)