Qinverse {RationalMatrix}R Documentation

Inverse of a rational matrix

Description

Inverse matrix of a square rational matrix.

Usage

Qinverse(M)

Arguments

M

a square matrix such that as.character(Mij) is a quoted integer or a quoted fraction for each entry Mij

Value

A character matrix representing the inverse of M.

Examples

library(RationalMatrix)
M <- cbind(c("1/2", "3", "1"), c("5/3", "-2/7", "10/3"), c("0", "1", "2"))
Qinverse(M)

[Package RationalMatrix version 1.0.0 Index]