Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. sage: R.<x> = QQ[]
  2. sage: K.<a,b> = NumberField( [x^3-2, x^2+3])
  3. sage: a^3 == 2, b^2 == -3
  4. (True, True)
  5. sage: a.absolute_minpoly(), b.absolute_minpoly()
  6. (x^3 - 2, x^2 + 3)
  7. sage: u = (-1+b)/2 # primitive 3.rd root of unity
  8. sage: u^3
  9. 1
  10. sage: [ (a*u^k).absolute_minpoly() for k in [0,1,2] ]
  11. [x^3 - 2, x^3 - 2, x^3 - 2]
  12. sage: (a^2+b^3).absolute_minpoly()
  13. x^6 + 81*x^4 - 8*x^3 + 2187*x^2 + 648*x + 19699
  14.  
  15. sage: S.<Y> = K[]
  16. sage: S
  17. Univariate Polynomial Ring in Y over Number Field in a with defining polynomial x^3 - 2 over its base field
  18. sage: prod( [ Y-(a*u^k)^2-(b*sgn)^3 for k in [0,1,2] for sgn in [-1,1] ] )
  19. Y^6 + 81*Y^4 - 8*Y^3 + 2187*Y^2 + 648*Y + 19699
  20.  
  21. sage: prod( [ Y-(a*u^k)^2-b^3 for k in [0,1,2] ] )
  22. Y^3 + 9*b*Y^2 - 81*Y - 81*b - 4
  23.  
  24. sage: prod( [ Y-a^2-(b*sgn)^3 for sgn in [-1,1] ] )
  25. Y^2 - 2*a^2*Y + 2*a + 27
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement