Skip to content

Commit e1b87f9

Browse files
committed
Added Comments
Described functions
1 parent f1b0be6 commit e1b87f9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

cachematrix.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
## Put comments here that give an overall description of what your
2-
## functions do
1+
# This function is able to cache potentially time-consuming
2+
# computations of the Inverse of a Matrix
33

4-
## Write a short comment describing this function
4+
5+
## This function creates a special
6+
## "matrix" object that can cache its inverse
57

68
makeCacheMatrix <- function(x = matrix()) {
79

810
}
911

1012

11-
## Write a short comment describing this function
13+
## This function computes the inverse of the special
14+
##"matrix" returned by makeCacheMatrix above.
15+
##If the inverse has already been calculated
16+
##(and the matrix has not changed),
17+
##then cacheSolve should retrieve the inverse from the cache.
1218

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

0 commit comments

Comments
 (0)