Skip to content

Commit 7e7b5c7

Browse files
committed
Trac #32215: fix a doctest. Use **kwds instead of coefficient
1 parent dfd5ae4 commit 7e7b5c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/rings/asymptotic/term_monoid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4529,7 +4529,7 @@ class BTerm(TermWithCoefficient):
45294529
B(42*x^3*y^2, x >= 10, y >= 20)
45304530
45314531
"""
4532-
def __init__(self, parent, growth, coefficient, valid_from):
4532+
def __init__(self, parent, growth, valid_from, **kwds):
45334533
r"""
45344534
See :class:`BTerm` for more information.
45354535
@@ -4574,8 +4574,8 @@ def __init__(self, parent, growth, coefficient, valid_from):
45744574
...
45754575
ValueError: B-Term has valid_from variables defined which do not occur in the term.
45764576
"""
4577-
super().__init__(parent=parent, growth=growth, coefficient=coefficient)
4578-
self.coefficient = coefficient
4577+
super().__init__(parent=parent, growth=growth, coefficient=kwds['coefficient'])
4578+
self.coefficient = kwds['coefficient']
45794579
for variable_name in valid_from.keys():
45804580
if variable_name not in parent.growth_group.variable_names():
45814581
raise ValueError('B-Term has valid_from variables defined which do not occur in the term.')
@@ -4750,7 +4750,7 @@ def _absorb_(self, other):
47504750
valid_from_new[variable_name] = (other.valid_from[variable_name])
47514751
q = self.growth / other.growth
47524752
coeff_new = self.coefficient + (other.coefficient / q._find_minimum_(valid_from_new))
4753-
return self.parent()(self.growth, coeff_new, valid_from=valid_from_new)
4753+
return self.parent()(self.growth, valid_from=valid_from_new, coefficient=coeff_new)
47544754

47554755

47564756
class BTermMonoid(TermWithCoefficientMonoid):

0 commit comments

Comments
 (0)