Пример #1
0
 def __add__(self, other):
     if isinstance(other, TransientTerm):
         return self.__class__(coeff=self.coeff + other.coeff)
     else:
         return CellTerm.__add__(self, other)