# SageMath code for working with p-adic field 137.6.3.12a1.1. # Define the p-adic field: Prec = 100 # Default precision of 100 Q137 = Qp(137, Prec); x = polygen(QQ) L. = Q137.extension(x^6 + x^4 + 116*x^3 + 102*x^2 + 3*x + 3) K. = L.extension(x^3 + 137*t^2) # Defining polynomial: K.defining_polynomial() # Base field Qp: K.base() # Degree over Qp: K.absolute_degree() # Ramification index: K.absolute_e() # Residue field degree (Inertia degree): K.absolute_f() # Maximal unramified subextension: K.maximal_unramified_subextension() # Roots of unity: len(K.roots_of_unity())