Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. sage: R.<X> = PolynomialRing(QQ)
  2. sage: K.<a> = NumberField( X^4 - 2*X^2 + 2 )
  3. sage: L.<s> = K.galois_closure()
  4. sage: K.is_galois()
  5. False
  6. sage: L.degree()
  7. 8
  8. sage: RK.<Y> = PolynomialRing(K)
  9. sage: RK
  10. Univariate Polynomial Ring in Y over Number Field in a with defining polynomial X^4 - 2*X^2 + 2
  11. sage: RL.<Z> = PolynomialRing(L)
  12. sage: RL
  13. Univariate Polynomial Ring in Z over Number Field in s with defining polynomial X^8 - 20*X^6 + 104*X^4 - 40*X^2 + 1156
  14. sage: a.minpoly()
  15. x^4 - 2*x^2 + 2
  16. sage: s.minpoly()
  17. x^8 - 20*x^6 + 104*x^4 - 40*x^2 + 1156
  18. sage: factor( Y^2 - 2 )
  19. Y^2 - 2
  20. sage: # so sqrt(2) is not in K
  21. sage: factor( Z^2 - 2 )
  22. (Z - 1/328*s^6 + 15/328*s^4 + 3/82*s^2 - 155/164) * (Z + 1/328*s^6 - 15/328*s^4 - 3/82*s^2 + 155/164)
  23. sage: # so sqrt(2) is in L
  24. sage: G.<g> = L.galois_group()
  25. sage: G.structure_description()
  26. 'D4'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement