Computes the determinant of a numeric or character matrix.

mxdet(x)

Arguments

x

numeric or character matrix.

Value

numeric or character.

References

Guidotti, E. (2020). "calculus: High dimensional numerical and symbolic calculus in R". https://arxiv.org/abs/2101.00086

See also

Other matrix algebra: mxinv(), mxtr(), mx()

Examples

### numeric matrix x <- matrix(1:4, nrow = 2) mxdet(x)
#> [1] -2
### symbolic matrix x <- matrix(letters[1:4], nrow = 2) mxdet(x)
#> [1] "(a)*((d)) + -(b)*((c))"