detQ {qspray}R Documentation

Determinant of a rational matrix

Description

Determinant of a square matrix with rational entries.

Usage

detQ(M)

Arguments

M

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

Value

A quoted rational number representing the determinant.

Examples

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

[Package qspray version 0.1.1 Index]