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

getRank -- calculates the rank of a symmetric bilinear form

Synopsis

Description

This computes the rank of the form $\beta$

i1 : beta = makeDiagonalForm(QQ, (3,5,7,11))

o1 = | 3 0 0 0  |
     | 0 5 0 0  |
     | 0 0 7 0  |
     | 0 0 0 11 |

o1 : GrothendieckWittClass
i2 : getRank beta

o2 = 4
i3 : M = matrix(QQ, {{1,4,7},{4,3,-1},{7,-1,5}})

o3 = | 1 4  7  |
     | 4 3  -1 |
     | 7 -1 5  |

              3       3
o3 : Matrix QQ  <-- QQ
i4 : getRank M

o4 = 3

See also

Ways to use getRank:

For the programmer

The object getRank is a method function.