Approximations of algebraic irrationalities with matrices