Cyclotomic polynomial: Difference between revisions

Content added Content deleted
(Change the output to improve readibility.)
m (Removed a useless variable.)
Line 3,359: Line 3,359:
while true:
while true:
inc n
inc n
let cyclo = cycloPoly(n)
if cycloPoly(n).hasCoeffAbs(i):
if cyclo.hasCoeffAbs(i):
echo &"Φ{'(' & $n & ')':7} has coefficient with magnitude = {i}"
echo &"Φ{'(' & $n & ')':7} has coefficient with magnitude = {i}"
dec n
dec n