Matrix is a linear algebra library for manipulating dense matrices. Its primary design goal is ease of use.
Rational is a module for exact representation and manipulation of rational fractions, that is, those fractions that can be exactly represented by a ratio of integers (e.g., 1/3 or 4176/22687).