powered by
Computes the inverse of a matrix.
inv(x)
a matrix
a numeric matrix.
Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.
## Create Pascal Matrix: P = pascal(5) P ## Compute the Inverse Matrix: inv(P) ## Check: inv(P) %*% P ## Alternatives: chol2inv(chol(P)) solve(P)
Run the code above in your browser using DataLab