Skip to content

Commit

Permalink
sage.rings.polynomial: Update # needs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 7, 2023
1 parent df1f20f commit 87f7b4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/sage/rings/polynomial/polynomial_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ cdef class Polynomial(CommutativePolynomial):
Univariate Polynomial Ring in x over Rational Field
sage: zero = QQ['x'](0)
sage: a = matrix(ZZ, [[1]])
sage: zero(a).parent()
sage: a = matrix(ZZ, [[1]]) # needs sage.modules
sage: zero(a).parent() # needs sage.modules
Full MatrixSpace of 1 by 1 dense matrices over Rational Field
sage: pol(y, x).parent() is pol(x, y).parent() is pol(y, y).parent() is Pol_xy
Expand All @@ -677,11 +677,11 @@ cdef class Polynomial(CommutativePolynomial):
Univariate Polynomial Ring in x over Rational Field
sage: one = Pol_xy(1)
sage: one(1, 1.).parent()
sage: one(1, 1.).parent() # needs sage.rings.real_mpfr
Real Field with 53 bits of precision
sage: zero = GF(2)['x'](0)
sage: zero(1.).parent()
sage: zero(1.).parent() # needs sage.rings.real_mpfr
Traceback (most recent call last):
...
TypeError: no common canonical parent for objects with parents:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/term_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ def singular_str(self):
sage: T = P.term_order()
sage: T.singular_str()
'(lp(3),Dp(5),lp(2))'
sage: P._singular_() # needs sage.rings.finite_rings
sage: P._singular_() # needs sage.libs.singular
polynomial ring, over a field, global ordering
// coefficients: ZZ/127
// number of vars : 10
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/toy_variety.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def linear_representation(p, polys):
EXAMPLES::
sage: # needs sage.rings.finite_rings
sage: # needs sage.modules sage.rings.finite_rings
sage: from sage.rings.polynomial.toy_variety import linear_representation
sage: R.<x,y> = PolynomialRing(GF(32003))
sage: B = [x^2 + 1, y^2 + 1, x*y + 1]
Expand Down

0 comments on commit 87f7b4a

Please sign in to comment.