Matrices: adjoint and cofactors - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Matrices: adjoint and cofactors (/thread-4119.html) |
Matrices: adjoint and cofactors - salvomic - 06-09-2015 09:07 PM hi, a little program to get adjoint matrix, cofactor matrix and minor(s) of a given matrix Salvo Micciché EDIT 2017, November After the release of beta 2017 November 8 (build >13005) the CAS has also another important command: adjoint_matrix(m). It returns for a matrix the characteristic polynomial and the adjoint matrix (see help in the Prime). So the above code work in the previous version of the firmware and only with numerical entries (no literal symbolic values). Code:
After the beta 2017 November 8 and the next firmwares there is a better, fast and simple code. This code is all CAS and use the new adjoint_matrix() function to calculate: adj(m) Adjoint matrix cofactors(m) Cofactors matrix -> TRN(adj(m)) minor(m, r, c) a minor of the matrix m, suppressing row r and col c Code:
|