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 −4w2−2 (with -4 and -2 written as they would be in Q2)?
Welcome to Ask Sage! Thank you for your question.
Please provide code to reproduce the observed behaviour.