Skip to content

Commit 23e4c19

Browse files
committed
Make a test about the parent class and other small fixes
1 parent 2dcaf3a commit 23e4c19

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/sage/rings/polynomial/multi_polynomial_ring_base.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ cdef class MPolynomialRing_base(CommutativeRing):
871871
"""
872872
Return the term order of ``self``.
873873
874-
OUTPUT: a :class:`sage.rings.polynomial.term_order.TermOrder` of the
874+
OUTPUT: a :class:`~sage.rings.polynomial.term_order.TermOrder` of the
875875
variables of ``self``.
876876
877877
EXAMPLES::
@@ -906,22 +906,23 @@ cdef class MPolynomialRing_base(CommutativeRing):
906906
907907
INPUT:
908908
909-
- ``n`` -- integer (default: ``0``) number of the generator
909+
- ``n`` -- integer (default: ``0``); number of the generator
910910
911911
EXAMPLES::
912912
913-
sage: R = ZZ['x,y,z']
913+
sage: R = CC['x,y,z']
914914
sage: x = R.gen()
915915
sage: x
916916
x
917917
sage: parent(x)
918-
Multivariate Polynomial Ring in x, y, z over Integer Ring
918+
Multivariate Polynomial Ring in x, y, z over Complex Field with 53
919+
bits of precision
919920
sage: R.gen(2)
920921
z
921922
sage: R.gen(23)
922923
Traceback (most recent call last):
923924
...
924-
ValueError: Generator not defined.
925+
ValueError: generator not defined
925926
"""
926927
if n < 0 or n >= self._ngens:
927928
raise ValueError("generator not defined")

0 commit comments

Comments
 (0)