@@ -541,7 +541,7 @@ def coefficient_of_word(self, w, multiply_left=True, multiply_right=True):
541
541
OUTPUT:
542
542
543
543
An element in the parent's
544
- :meth:`~RecognizableSeriesSpace.coefficients `
544
+ :meth:`~RecognizableSeriesSpace.coefficient_ring `
545
545
546
546
EXAMPLES::
547
547
@@ -1004,7 +1004,7 @@ class RecognizableSeriesSpace(UniqueRepresentation, Parent):
1004
1004
1005
1005
INPUT:
1006
1006
1007
- - ``coefficients `` -- a (semi-)ring
1007
+ - ``coefficient_ring `` -- a (semi-)ring
1008
1008
1009
1009
- ``alphabet`` -- a tuple, list or
1010
1010
:class:`~sage.sets.totally_ordered_finite_set.TotallyOrderedFiniteSet`.
@@ -1036,7 +1036,7 @@ class RecognizableSeriesSpace(UniqueRepresentation, Parent):
1036
1036
sage: Rec1 = RecognizableSeriesSpace(ZZ, [0, 1])
1037
1037
sage: Rec1
1038
1038
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1039
- sage: Rec2 = RecognizableSeriesSpace(coefficients =ZZ, alphabet=[0, 1])
1039
+ sage: Rec2 = RecognizableSeriesSpace(coefficient_ring =ZZ, alphabet=[0, 1])
1040
1040
sage: Rec2
1041
1041
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1042
1042
sage: Rec3 = RecognizableSeriesSpace(ZZ, indices=Words([0, 1], infinite=False))
@@ -1064,7 +1064,7 @@ def __classcall__(cls, *args, **kwds):
1064
1064
sage: Rec1 = RecognizableSeriesSpace(ZZ, [0, 1])
1065
1065
sage: Rec1
1066
1066
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1067
- sage: Rec2 = RecognizableSeriesSpace(coefficients =ZZ, alphabet=[0, 1])
1067
+ sage: Rec2 = RecognizableSeriesSpace(coefficient_ring =ZZ, alphabet=[0, 1])
1068
1068
sage: Rec2
1069
1069
Space of recognizable series on {0, 1} with coefficients in Integer Ring
1070
1070
sage: Rec3 = RecognizableSeriesSpace(ZZ, indices=Words([0, 1], infinite=False))
@@ -1078,7 +1078,7 @@ def __classcall__(cls, *args, **kwds):
1078
1078
1079
1079
@classmethod
1080
1080
def __normalize__ (cls ,
1081
- coefficients = None ,
1081
+ coefficient_ring = None ,
1082
1082
alphabet = None , indices = None ,
1083
1083
category = None ):
1084
1084
r"""
@@ -1095,7 +1095,7 @@ def __normalize__(cls,
1095
1095
sage: RecognizableSeriesSpace([0, 1], [0, 1])
1096
1096
Traceback (most recent call last):
1097
1097
...
1098
- ValueError: Coefficients [0, 1] are not a semiring.
1098
+ ValueError: Coefficient ring [0, 1] is not a semiring.
1099
1099
1100
1100
::
1101
1101
@@ -1111,7 +1111,7 @@ def __normalize__(cls,
1111
1111
sage: RecognizableSeriesSpace(alphabet=[0, 1])
1112
1112
Traceback (most recent call last):
1113
1113
...
1114
- ValueError: No coefficients speficied .
1114
+ ValueError: No coefficient ring specified .
1115
1115
sage: RecognizableSeriesSpace(ZZ, indices=Words(ZZ))
1116
1116
Traceback (most recent call last):
1117
1117
...
@@ -1126,20 +1126,20 @@ def __normalize__(cls,
1126
1126
if not indices .alphabet ().is_finite ():
1127
1127
raise NotImplementedError ('Alphabet is not finite.' )
1128
1128
1129
- if coefficients is None :
1130
- raise ValueError ('No coefficients speficied .' )
1129
+ if coefficient_ring is None :
1130
+ raise ValueError ('No coefficient ring specified .' )
1131
1131
from sage .categories .semirings import Semirings
1132
- if coefficients not in Semirings :
1132
+ if coefficient_ring not in Semirings :
1133
1133
raise ValueError (
1134
- 'Coefficients {} are not a semiring.' .format (coefficients ))
1134
+ 'Coefficient ring {} is not a semiring.' .format (coefficient_ring ))
1135
1135
1136
1136
from sage .categories .sets_cat import Sets
1137
1137
category = category or Sets ()
1138
1138
1139
- return (coefficients , indices , category )
1139
+ return (coefficient_ring , indices , category )
1140
1140
1141
1141
@experimental (trac_number = 21202 )
1142
- def __init__ (self , coefficients , indices , category ):
1142
+ def __init__ (self , coefficient_ring , indices , category ):
1143
1143
r"""
1144
1144
See :class:`RecognizableSeriesSpace` for details.
1145
1145
@@ -1159,7 +1159,7 @@ def __init__(self, coefficients, indices, category):
1159
1159
"""
1160
1160
self ._indices_ = indices
1161
1161
super (RecognizableSeriesSpace , self ).__init__ (
1162
- category = category , base = coefficients )
1162
+ category = category , base = coefficient_ring )
1163
1163
1164
1164
def alphabet (self ):
1165
1165
r"""
@@ -1196,7 +1196,7 @@ def indices(self):
1196
1196
"""
1197
1197
return self ._indices_
1198
1198
1199
- def coefficients (self ):
1199
+ def coefficient_ring (self ):
1200
1200
r"""
1201
1201
Return the coefficients of this recognizable series space.
1202
1202
@@ -1206,7 +1206,7 @@ def coefficients(self):
1206
1206
1207
1207
EXAMPLES::
1208
1208
1209
- sage: RecognizableSeriesSpace(ZZ, [0, 1]).coefficients ()
1209
+ sage: RecognizableSeriesSpace(ZZ, [0, 1]).coefficient_ring ()
1210
1210
Integer Ring
1211
1211
"""
1212
1212
return self .base ()
@@ -1227,7 +1227,7 @@ def _repr_(self):
1227
1227
"""
1228
1228
return 'Space of recognizable series on {} ' \
1229
1229
'with coefficients in {}' .format (self .alphabet (),
1230
- self .coefficients ())
1230
+ self .coefficient_ring ())
1231
1231
1232
1232
def zero (self ):
1233
1233
"""
0 commit comments