1from sage.rings.all import NumberField, QQ 2 3R = QQ['x'] 4x = R.gen() 5F = NumberField(x*x - x- 1, 'a') 6a = F.gen() 7 8