powered by
Inverse matrix of a square rational matrix.
Qinverse(M)
A character matrix representing the inverse of M.
M
a square matrix such that as.character(Mij) is a quoted integer or a quoted fraction for each entry Mij
as.character(Mij)
Mij
library(RationalMatrix) M <- cbind(c("1/2", "3", "1"), c("5/3", "-2/7", "10/3"), c("0", "1", "2")) Qinverse(M)
Run the code above in your browser using DataLab