sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.31k stars 451 forks source link

Degree of ideals #11860

Open 19aff6ad-dfaf-4c86-bfdb-da1a67aed9f3 opened 12 years ago

19aff6ad-dfaf-4c86-bfdb-da1a67aed9f3 commented 12 years ago

Returns the degree of a homogeneous ideal.

EXAMPLES::

sage: R.<x,y> = QQ[]
sage: I = R.ideal(x+y)
sage: I.degree()
1
sage: J = R.ideal(x^2+y)
sage: J.degree()
Traceback (most recent call last)
...
TypeError: Ideal should be homogeneous

CC: @burcin

Component: commutative algebra

Keywords: degree, ideal, sd34

Author: Hiep Dang

Issue created by migration from https://trac.sagemath.org/ticket/11860

19aff6ad-dfaf-4c86-bfdb-da1a67aed9f3 commented 12 years ago

Attachment: trac_11860_degree_ideal.patch.gz