LinSol |
Syntax |
LinSol(M:MAT, L:LIST):LIST where M is an m x n matrix over Z or Q, and L is a list of length m with entries in Z or Q (or a list of such lists). |
Description |
Example |
M := Mat([[3,1,4],[1,5,9],[2,6,5]]); L := [123,456,789]; LinSol(M, L); [199/5, 742/5, -181/5] ------------------------------- M*Transposed(Mat([It])); Mat([ [123], [456], [789] ]) ------------------------------- LinSol(M,[L,[1,2,3]]); [[199/5, 742/5, -181/5], [4/15, 7/15, -1/15]] ------------------------------- |
See Also |