Qdet {RationalMatrix}R Documentation

Determinant of a rational matrix

Description

Determinant of a square matrix with rational entries.

Usage

Qdet(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 string: quoted rational number representing the determinant.

Examples

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

[Package RationalMatrix version 1.0.0 Index]