calculus (version 0.1.0)

inverse: Numeric and Symbolic Matrix Inverse

Description

Calculates the inverse of a matrix.

Usage

inverse(x)

Arguments

x

numeric or character matrix.

Value

numeric or character matrix.

Examples

Run this code
# NOT RUN {
# numeric matrix
x <- matrix(1:4, nrow = 2)
inverse(x)

# symbolic matrix
x <- matrix(letters[1:4], nrow = 2)
inverse(x)

# }

Run the code above in your browser using DataCamp Workspace