generate.sage

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

346 bytes, as of the version from 2026-08-09 09:16 (current). Recorded here, not run.

from utils.utils import numbers_to_yaml
import yaml
import os

path = 'data/Polynomials/Orthogonal_polynomials/Chebyshev_polynomials_of_the_first_kind'

R.<x> = QQ[]

numbers = {int(n): str(chebyshev_T(n,x)) for n in [0..100]}

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