Skip to content

Instantly share code, notes, and snippets.

@eduardoleon
Last active May 2, 2021 07:04
Show Gist options
  • Save eduardoleon/b0050b91785da42fc06705be53fb09d6 to your computer and use it in GitHub Desktop.
Save eduardoleon/b0050b91785da42fc06705be53fb09d6 to your computer and use it in GitHub Desktop.
session
pyon% sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2, Release Date: 2020-10-24 │
│ Using Python 3.9.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: P.<x,y,z,w> = PolynomialRing(CC)
sage: d = 4
sage: I = Ideal([w*y^d - x*x^d, w*z^d - y*x^d])
sage: J = Ideal([w*y^d - x*x^d, w*z^d - y*x^d, w*w^d - z*x^d])
sage: p = I.hilbert_polynomial()
sage: p
25*t - 75
sage: p(t = t - 5)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-10-5fa1c0eeecbd> in <module>
----> 1 p(t = t - Integer(5))
NameError: name 't' is not defined
sage:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment