Learn R Programming

RationalMatrix (version 1.0.0)

Qdet: Determinant of a rational matrix

Description

Determinant of a square matrix with rational entries.

Usage

Qdet(M)

Value

A string: quoted rational number representing the determinant.

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"), c("5/3", "-2/7"))
Qdet(M)

Run the code above in your browser using DataLab