You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix creates a special "matrix" which contains a list containing functions: to get and set the matrix and get and set the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
getinverse <- function() i
list(set = set, get = get,
setinverse = setinverse,
getinverse = getinverse)
}
## cacheSolve first finds in cache inverse matrix calcualted before. If it is found then it is returned from cache. If not, then it inverses the matrix, sotres in cache, and returns the inverse matrix.