Skip to content

Commit 4333613

Browse files
author
ergomes
committed
Refined comments
1 parent 69be214 commit 4333613

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cachematrix.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
66
makeCacheMatrix <- 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
2323
cacheSolve <- function(x, ...) {
2424
i <- x$getinverse()
2525
if(!is.null(i)) {

0 commit comments

Comments
 (0)