The MATRIX program is designed to perform and to teach row operation algorithms on matrices. The program can work in a decimal floating-point mode in which calculations are carried out to 18 significant digits, or it can work in a fraction mode with exact rational arithmetic.