File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # # Put comments here that give an overall description of what your
2- # # functions do
1+ # # Solution for Assignmnet 2:
2+ # # Pair of functions to be used to calculate and cache the inverse of a matrix
33
4- # # Creates a special "matrix" that is in fact a list of functions
5- # # to get and set the value and the inverse of the matrix
4+ # # Creates a special "matrix" with a list of functions to get and set
5+ # # the matrix itself and its inverse
66makeCacheMatrix <- function (x = matrix ()) {
77 i <- NULL
88 set <- function (y ) {
@@ -18,8 +18,8 @@ makeCacheMatrix <- function(x = matrix()) {
1818}
1919
2020
21- # # Returns a matrix that is the inverse of 'x'. If the inverse of 'x'
22- # # has already been calculated, then return the cached value
21+ # # Returns the inverse matrix of 'x'. If the inverse of 'x' has already been
22+ # # calculated, then return the cached value
2323cacheSolve <- function (x , ... ) {
2424 i <- x $ getinverse()
2525 if (! is.null(i )) {
You can’t perform that action at this time.
0 commit comments