## 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