diff --git a/R file b/R file new file mode 100644 index 00000000000..8b478238261 --- /dev/null +++ b/R file @@ -0,0 +1,14 @@ +makeCacheMatrix <- function(x = matrix()) { + inv <- NULL + set <- function(y) { + x <<- y + inv <<- NULL + } + get <- function() x + setInverse <- function(inverse) inv <<- inverse + getInverse <- function() inv + list(set = set, + get = get, + setInverse = setInverse, + getInverse = getInverse) +}