Learn R Programming

cmna (version 1.0.5)

detmatrix: Calculate the determinant of the matrix

Description

Calculate the determinant of the matrix

Usage

detmatrix(m)

Arguments

m

a matrix

Value

the determinant

Details

detmatrix calculates the determinant of the matrix given.

See Also

Other linear: choleskymatrix(), gdls(), invmatrix(), iterativematrix, lumatrix(), refmatrix(), rowops, tridiagmatrix(), vecnorm()

Examples

Run this code
# NOT RUN {
A <- matrix(c(1, 2, -7, -1, -1, 1, 2, 1, 5), 3)
detmatrix(A)

# }

Run the code above in your browser using DataLab