inv | R Documentation |
Computes the inverse of a matrix.
inv(x)
x |
a numeric matrix. |
a 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.