code: def reset_small(self, eq):
          
          assert eq in ('f', 'g')
          for idx, var in enumerate(self.__dict__[eq]):
              if abs(var) <= 1e-12:
                  self.__dict__[eq][idx] = 0
docs: Reset numbers smaller than 1e-12 in f and g equations