View source: R/matrix.inverse.R
matrix.inverse | R Documentation |
This function returns the inverse of a square matrix computed using the R function solve.
matrix.inverse(x)
x |
a square numeric matrix |
A matrix.
Frederick Novomestky fnovomes@poly.edu
Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.
A <- matrix( c ( 1, 2, 2, 1 ), nrow=2, byrow=TRUE) print( A ) invA <- matrix.inverse( A ) print( invA ) print( A %*% invA ) print( invA %*% A )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.