--Copyright The Numerical Algorithms Group Limited 1996.

)cl all

--Special case tests of factoring code for cyclotomic polynomials

-- +/- x^n - 1 (n even)

factor(x**84 - 1)
factor(-(x**68 -1))

-- +/- x^n + 1 (n odd)

factor(x**99 + 1)
factor(-(x**77 +1))

-- +/- x^(2^k) + 1

ind := 2**6
factor(x**ind + 1)

ind := 2**7
factor(-(x**ind + 1))

-- This takes a lot longer than it should. It will improve when the 
-- cyclotomic code improves.

factor(x**84 + 1)
D
--cyclotomic code improves.
