@@ -528,7 +528,7 @@ def __getitem__(self, w):
528
528
OUTPUT:
529
529
530
530
An element in the parent's
531
- :meth:`~RecognizableSeriesSpace.coefficients `
531
+ :meth:`~RecognizableSeriesSpace.coefficient_ring `
532
532
533
533
EXAMPLES::
534
534
@@ -968,7 +968,7 @@ class RecognizableSeriesSpace(UniqueRepresentation, Parent):
968
968
969
969
INPUT:
970
970
971
- - ``coefficients `` -- a (semi-)ring
971
+ - ``coefficient_ring `` -- a (semi-)ring
972
972
973
973
- ``alphabet`` -- a tuple, list or
974
974
:class:`~sage.sets.totally_ordered_finite_set.TotallyOrderedFiniteSet`.
@@ -1000,7 +1000,7 @@ class RecognizableSeriesSpace(UniqueRepresentation, Parent):
1000
1000
sage: Rec1 = RecognizableSeriesSpace(ZZ, [0, 1])
1001
1001
sage: Rec1
1002
1002
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1003
- sage: Rec2 = RecognizableSeriesSpace(coefficients =ZZ, alphabet=[0, 1])
1003
+ sage: Rec2 = RecognizableSeriesSpace(coefficient_ring =ZZ, alphabet=[0, 1])
1004
1004
sage: Rec2
1005
1005
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1006
1006
sage: Rec3 = RecognizableSeriesSpace(ZZ, indices=Words([0, 1], infinite=False))
@@ -1028,7 +1028,7 @@ def __classcall__(cls, *args, **kwds):
1028
1028
sage: Rec1 = RecognizableSeriesSpace(ZZ, [0, 1])
1029
1029
sage: Rec1
1030
1030
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1031
- sage: Rec2 = RecognizableSeriesSpace(coefficients =ZZ, alphabet=[0, 1])
1031
+ sage: Rec2 = RecognizableSeriesSpace(coefficient_ring =ZZ, alphabet=[0, 1])
1032
1032
sage: Rec2
1033
1033
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1034
1034
sage: Rec3 = RecognizableSeriesSpace(ZZ, indices=Words([0, 1], infinite=False))
@@ -1042,7 +1042,7 @@ def __classcall__(cls, *args, **kwds):
1042
1042
1043
1043
@classmethod
1044
1044
def __normalize__ (cls ,
1045
- coefficients = None ,
1045
+ coefficient_ring = None ,
1046
1046
alphabet = None , indices = None ,
1047
1047
category = None ):
1048
1048
r"""
@@ -1059,7 +1059,7 @@ def __normalize__(cls,
1059
1059
sage: RecognizableSeriesSpace([0, 1], [0, 1])
1060
1060
Traceback (most recent call last):
1061
1061
...
1062
- ValueError: Coefficients [0, 1] are not a semiring.
1062
+ ValueError: Coefficient ring [0, 1] is not a semiring.
1063
1063
1064
1064
::
1065
1065
@@ -1075,7 +1075,7 @@ def __normalize__(cls,
1075
1075
sage: RecognizableSeriesSpace(alphabet=[0, 1])
1076
1076
Traceback (most recent call last):
1077
1077
...
1078
- ValueError: No coefficients speficied .
1078
+ ValueError: No coefficient ring specified .
1079
1079
sage: RecognizableSeriesSpace(ZZ, indices=Words(ZZ))
1080
1080
Traceback (most recent call last):
1081
1081
...
@@ -1090,20 +1090,20 @@ def __normalize__(cls,
1090
1090
if not indices .alphabet ().is_finite ():
1091
1091
raise NotImplementedError ('Alphabet is not finite.' )
1092
1092
1093
- if coefficients is None :
1094
- raise ValueError ('No coefficients speficied .' )
1093
+ if coefficient_ring is None :
1094
+ raise ValueError ('No coefficient ring specified .' )
1095
1095
from sage .categories .semirings import Semirings
1096
- if coefficients not in Semirings :
1096
+ if coefficient_ring not in Semirings :
1097
1097
raise ValueError (
1098
- 'Coefficients {} are not a semiring.' .format (coefficients ))
1098
+ 'Coefficient ring {} is not a semiring.' .format (coefficient_ring ))
1099
1099
1100
1100
from sage .categories .sets_cat import Sets
1101
1101
category = category or Sets ()
1102
1102
1103
- return (coefficients , indices , category )
1103
+ return (coefficient_ring , indices , category )
1104
1104
1105
1105
@experimental (trac_number = 21202 )
1106
- def __init__ (self , coefficients , indices , category ):
1106
+ def __init__ (self , coefficient_ring , indices , category ):
1107
1107
r"""
1108
1108
See :class:`RecognizableSeriesSpace` for details.
1109
1109
@@ -1123,7 +1123,7 @@ def __init__(self, coefficients, indices, category):
1123
1123
"""
1124
1124
self ._indices_ = indices
1125
1125
super (RecognizableSeriesSpace , self ).__init__ (
1126
- category = category , base = coefficients )
1126
+ category = category , base = coefficient_ring )
1127
1127
1128
1128
def alphabet (self ):
1129
1129
r"""
@@ -1160,7 +1160,7 @@ def indices(self):
1160
1160
"""
1161
1161
return self ._indices_
1162
1162
1163
- def coefficients (self ):
1163
+ def coefficient_ring (self ):
1164
1164
r"""
1165
1165
Return the coefficients of this recognizable series space.
1166
1166
@@ -1170,7 +1170,7 @@ def coefficients(self):
1170
1170
1171
1171
EXAMPLES::
1172
1172
1173
- sage: RecognizableSeriesSpace(ZZ, [0, 1]).coefficients ()
1173
+ sage: RecognizableSeriesSpace(ZZ, [0, 1]).coefficient_ring ()
1174
1174
Integer Ring
1175
1175
"""
1176
1176
return self .base ()
@@ -1191,7 +1191,7 @@ def _repr_(self):
1191
1191
"""
1192
1192
return 'Space of recognizable series on {} ' \
1193
1193
'with coefficients in {}' .format (self .alphabet (),
1194
- self .coefficients ())
1194
+ self .coefficient_ring ())
1195
1195
1196
1196
def zero (self ):
1197
1197
"""
0 commit comments