The paper considers algorithms for solving linear matrix equations related to problems of mechanics and control, namely, the Lyapunov and Sylvester matrix equations and Riccati-type nonlinear matrix equations. These algorithms are capable of solving both linear equations and linear matrix inequalities. Algorithms based on the Bass relations are used to solve Riccati-type nonlinear matrix equations in so-called special cases where some eigenvalues of the matrix pencil are on a unit circle. These algorithms are compared with those of other authors by way of examples. It is shown that the algorithms can be implemented in symbolic computing routings, which allows solving these equations with high accuracy