Macaulay2 » Documentation
Packages » ChainComplexExtras :: appendZeroMap
next | previous | forward | backward | up | index | toc

# appendZeroMap -- append a zero map to chain complex

- Usage:
    `appendZeroMap C`
- Inputs:
  - C, a chain complex,
- Outputs:
  - a chain complex,

## Description

Add a zero map after the last differential in a chain complex.

    i1 : S=ZZ/101[x,y]/ideal(x*y)

    o1 = S

    o1 : QuotientRing

    i2 : C=chainComplex(matrix{{x}},matrix{{y}}**S^{ -1},matrix{{x}}**S^{ -2})[1]

          1      1      1      1
    o2 = S  <-- S  <-- S  <-- S

         -1     0      1      2

    o2 : ChainComplex

    i3 : appendZeroMap C

          1      1      1      1
    o3 = S  <-- S  <-- S  <-- S  <-- 0

         -1     0      1      2      3

    o3 : ChainComplex

    i4 : prependZeroMap C

                 1      1      1      1
    o4 = 0  <-- S  <-- S  <-- S  <-- S

         -2     -1     0      1      2

    o4 : ChainComplex

## Ways to use appendZeroMap:

- `appendZeroMap(ChainComplex)`

## For the programmer

The object appendZeroMap is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/ChainComplexExtras.m2:1414:0.