Skip to content

Commit 1438208

Browse files
committed
comments
1 parent 5ad55f2 commit 1438208

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.Rhistory

Whitespace-only changes.

cachematrix.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
## The function call is: cacheSolve(makeCacheMatrix(x))
66
## where x is the invertible matrix.
77

8-
## Write a short comment describing this function
9-
8+
## This function creates a list of items that can be called from another function.
9+
## This function is meant to be nested into another function that looks for the list of
10+
## items created by this one. The 4 items in the list are: set; get; setinverse; getinverse
1011
makeCacheMatrix <- function(x = matrix()) {
1112
m <- NULL # initializes m
1213
set <- function(y) {
@@ -22,7 +23,8 @@ makeCacheMatrix <- function(x = matrix()) {
2223
}
2324

2425

25-
## Write a short comment describing this function
26+
## This function looks for the result of the operation inside the list of the cache function.
27+
## If found, it returns the cached value. If not, it computes the inverse of the matrix x.
2628

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

0 commit comments

Comments
 (0)