LinKerBasis -- find the kernel of a matrix |
Syntax |
LinKerBasis(M: MAT): LIST of RINGELEM LinKerBasis(L: LIST): LIST of RINGELEM |
Description |
Example |
/**/ use QQ[x,y,z]; /**/ L := [x+y+z, y-z]; /**/ LinKerBasis(L); [[-2, 1, 1]] /**/ M := mat([[1,2,3,4],[5,6,7,8],[9,10,11,12]]); /**/ LinKerBasis(M); [[-1, 2, -1, 0], [-2, 3, 0, -1]] /**/ K := NewFractionField(NewPolyRing(QQ, "a,b")); /**/ use K; /**/ M := mat([[1,2,3,a],[5,6,7,a*b]]); /**/ LinKerBasis(M); [[-1, 2, -1, 0], [(a*b -3*a)/2, (-a*b +5*a)/4, 0, -1]] |
See Also |