Advertisement
JoelSjogren

Untitled

Jun 26th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. box% sage
  2. ┌────────────────────────────────────────────────────────────────────┐
  3. │ SageMath version 9.1, Release Date: 2020-05-20 │
  4. │ Using Python 3.8.3. Type "help()" for help. │
  5. └────────────────────────────────────────────────────────────────────┘
  6. sage: R.<x,y> = PolynomialRing(QQ,order='lex')
  7. sage: f = x^2-4*x+4; I = ideal(x^2-y,f); I.groebner_basis()
  8. [x - 1/4*y - 1, y^2 - 8*y + 16]
  9. sage: g = _[-1]
  10. sage: g.subs(y=4)
  11. 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement