@@ -4529,7 +4529,7 @@ class BTerm(TermWithCoefficient):
4529
4529
B(42*x^3*y^2, x >= 10, y >= 20)
4530
4530
4531
4531
"""
4532
- def __init__ (self , parent , growth , coefficient , valid_from ):
4532
+ def __init__ (self , parent , growth , valid_from , ** kwds ):
4533
4533
r"""
4534
4534
See :class:`BTerm` for more information.
4535
4535
@@ -4574,8 +4574,8 @@ def __init__(self, parent, growth, coefficient, valid_from):
4574
4574
...
4575
4575
ValueError: B-Term has valid_from variables defined which do not occur in the term.
4576
4576
"""
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' ]
4579
4579
for variable_name in valid_from .keys ():
4580
4580
if variable_name not in parent .growth_group .variable_names ():
4581
4581
raise ValueError ('B-Term has valid_from variables defined which do not occur in the term.' )
@@ -4750,7 +4750,7 @@ def _absorb_(self, other):
4750
4750
valid_from_new [variable_name ] = (other .valid_from [variable_name ])
4751
4751
q = self .growth / other .growth
4752
4752
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 )
4754
4754
4755
4755
4756
4756
class BTermMonoid (TermWithCoefficientMonoid ):
0 commit comments