Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So far, I managed to get around this by lifting γ to T[x] and taking the coefficients w.r.t the basis 1,x,x2,. Since the lift is the unique polynomial of degree less than deg(g), the coefficients are the ones I am looking for?

sage: gamma = W.an_element()
sage: coeffs = gamma.lift().coefficients(sparse=False)

click to hide/show revision 2
No.2 Revision

So far, I managed to get around this by lifting γ to T[x] and taking the coefficients w.r.t the basis 1,x,x2,. Since the lift is the unique polynomial of degree less than deg(g), the coefficients are the ones I am looking for?

sage: gamma = W.an_element()
sage: coeffs = gamma.lift().coefficients(sparse=False)

and then padding coeffs with deg(g) - len(coeffs) zeroes.