Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix bug in SeriesStream.is_constant()
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhansen committed Jan 13, 2014
1 parent bdad7a3 commit d2d753e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/combinat/species/series_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,16 @@ def compute(self, n):
return res

def is_constant(self):
return ((self._left.is_constant() and self._left.is_constant() == 0) and
(self._right.is_constant() and self._right.is_constant() == 0))
return ((self._left.is_constant() and self._left.get_constant() == 0) and
(self._right.is_constant() and self._right.get_constant() == 0))

def get_constant(self):
assert self.is_constant()
return self._base_ring(0)

def get_constant_position(self):
return (self._left.get_constant_position() *
self._right.get_constant_position()) - 1
self._right.get_constant_position())


class TailStream(SeriesStream):
Expand Down

0 comments on commit d2d753e

Please sign in to comment.