Learn R Programming

RationalMatrix (version 1.0.0)

Qinverse: Inverse of a rational matrix

Description

Inverse matrix of a square rational matrix.

Usage

Qinverse(M)

Value

A character matrix representing the inverse of M.

Arguments

M

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

Examples

Run this code
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