# # file: reduced-poly-ring.gap # created: pasha jan 6 2005 # modified: pasha jan 13 2005 # modification: minor formatting # # returns reduced polynomial algebra K[x]/(x^n) # (factorization by ideal in PolynomialRing doesn't work (at least straightforwardly) # as PolynomialRing is not an algebra object) ReducedPolyRingAux := function (K, n) local T,i,j; T := EmptySCTable (n, Zero(K), "symmetric"); # the basis element x^i, 0<=i<=n-1, is at place (i+1) for i in [0..n-1] do for j in [0..n-1] do if i+j < n then # this corresponds to x^i x^j = x^{i+j} if i+j