Rational Matrices
Most operations atlas uses involve integral matrices. However,
rational matrices can be manipulated in atlas. In particular, they
can be inverted directly without having to turn them into integral
matrices. We need a special command because the command inverse only
inverts matrices which are invertible over the integers. If they are
not, we get an error
atlas> set A=mat:[[2,1],[0,1]]
Variable A: mat
atlas> A
Value:
| 2, 0 |
| 1, 1 |
atlas> inverse(A)
Runtime error:
Matrix not invertible over the integers
(in call at atlas-scripts/basic.at:295:23-71 of error@string, built-in)
[inv=
| 1, 0 |
| -1, 2 |
, d=2]
[M=
| 2, 0 |
| 1, 1 |
]
(in call at <standard input>:8:0-10 of inverse@mat, defined at atlas-
scripts/basic.at:293:4--295:74)
Evaluation aborted.
atlas>