Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extension field over p-adics: how to write an element in the standard basis?

Suppose we have an extension field Q2(w), where w is a root of f(x)=x3+4x2+2. By default, Sage represents w3 as w3+O(wd), where d is the precision. How do I get Sage to print w3 out as a linear combination of the standard basis, i.e., as 4w22 (with -4 and -2 written as they would be in Q2)?