Skip to content

Commit efaf537

Browse files
committed
added comments explaining function
1 parent 7f657dd commit efaf537

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cachematrix.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
## Put comments here that give an overall description of what your
22
## functions do
33

4+
## This library is creates a matrix that can cache it's inverse
5+
## and gives computes the inverse of the created matrix
6+
47
## Write a short comment describing this function
58

6-
makeCacheMatrix <- function(x = matrix()) {
9+
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
710

11+
makeCacheMatrix <- function(x = matrix()) {
12+
813
}
914

1015

1116
## Write a short comment describing this function
17+
## cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix above.
18+
## If the inverse has already been calculated (and the matrix has not changed), then the cachesolve should
19+
## retrieve the inverse from the cache.
1220

1321
cacheSolve <- function(x, ...) {
1422
## Return a matrix that is the inverse of 'x'

0 commit comments

Comments
 (0)