def trunc(self, a):
    'Return an ExtensionFieldElem of length d-1 where d = deg(irpoly)\n        '
    d = self.deg
    if (a.deg == (d - 1)):
        return a
    c = a.poly.coef[((a.deg - d) + 1):]
    cp = polynom(self.F, c)
    return ExtensionFieldElem(self, cp)
Return an ExtensionFieldElem of length d-1 where d = deg(irpoly)
def trunc(self, a):
    '\n        '
    d = self.deg
    if (a.deg == (d - 1)):
        return a
    c = a.poly.coef[((a.deg - d) + 1):]
    cp = polynom(self.F, c)
    return ExtensionFieldElem(self, cp)