File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/sage/rings/polynomial Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments