Advertisement
JoelSjogren

Untitled

Nov 22nd, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. box% sage
  2. ┌────────────────────────────────────────────────────────────────────┐
  3. │ SageMath version 9.2, Release Date: 2020-10-24 │
  4. │ Using Python 3.8.6. Type "help()" for help. │
  5. └────────────────────────────────────────────────────────────────────┘
  6. sage: R.<x1,y1,a,length> = PolynomialRing(QQ, order='lex')
  7. sage: (x0,y0) = (0,0)
  8. sage: (x2,y2) = (x1,-y1)
  9. sage: Q = lambda u, v: (u[0]-v[0])^2 + (u[1]-v[1])^2
  10. sage: ideal(y1^2-4*a*x1, length^2 - Q((x0,y0),(x1,y1)), length^2 - Q((x1,y1),(x2,y2))).groebner_basis()
  11. [x1^2 - 3/4*length^2, x1*a - 1/16*length^2, x1*length^2 - 12*a*length^2, y1^2 - 1/4*length^2, a^2*length^2 - 1/192*length^4]
  12. sage:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement