Macaulay2 » Documentation
Packages » A1BrouwerDegrees :: addGW
next | previous | forward | backward | up | index | toc

addGW -- the direct sum of two Grothendieck-Witt classes

Synopsis

Description

This computes the direct sum of the Grothendieck-Witt classes beta and gamma.

i1 : M = matrix(QQ, {{1,0},{0,1}});

              2       2
o1 : Matrix QQ  <-- QQ
i2 : N = matrix(QQ, {{1,2},{2,5}});

              2       2
o2 : Matrix QQ  <-- QQ
i3 : beta = makeGWClass M;
i4 : gamma = makeGWClass N;
i5 : addGW(beta, gamma)

o5 = | 1 0 0 0 |
     | 0 1 0 0 |
     | 0 0 1 2 |
     | 0 0 2 5 |

o5 : GrothendieckWittClass

See also

Ways to use addGW:

For the programmer

The object addGW is a method function.