Skip to content

Commit 0130943

Browse files
committed
fixed an indexing bug in SpectralSequences
1 parent c963094 commit 0130943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

M2/Macaulay2/packages/SpectralSequences.m2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ SpectralSequence ^ InfiniteNumber:=
567567
-- again trying to handle the case of the zero complex --
568568
if min K_(infinity) < infinity and max K_infinity > - infinity then (
569569
for p from min K to max K do (
570-
for q from - p + min K_(infinity) to max K_(infinity) do (
570+
for q from -p + min K_(infinity) to max K_(infinity) + 1 do (
571571
if E.Prune == false then H#{p,q} = epq(K,p,q,s)
572572
else H#{p,q} = prune epq(K,p,q,s)
573573
);
@@ -637,7 +637,7 @@ page SpectralSequencePage := Page => opts -> E -> (
637637
-- again trying to handle the case of the zero complex --
638638
if min K_(infinity) < infinity and max K_infinity > - infinity then (
639639
for p from min K to max K do (
640-
for q from -p + min K_(infinity) to max K_(infinity) do (
640+
for q from -p + min K_(infinity) to max K_(infinity) + 1 do (
641641
-- H#{p,q} = E^s_{p,q}
642642
if E.Prune == false then H#{p,q} = epq(K,p,q,s)
643643
else H#{p,q} = prune epq(K,p,q,s)

0 commit comments

Comments
 (0)