Skip to content

Commit 20c2994

Browse files
committed
Update 2
1 parent ad84df1 commit 20c2994

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cachematrix.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@
77

88
makeCacheMatrix <- function(x = matrix()) {
99

10-
#Description: This function creates a special "matrix" object
10+
#Description/ Output: This function creates a special "matrix" object
1111
#that can cache its inverse
1212

1313
#Input: x as a square, invertible matrix (Input from cacheSolve)
1414
#1. set the value of the matrix
1515
#2. get the value of the matrix
1616
#3. set the value of the inverse
1717
#4. get the value of the inverse
18-
#Output:
1918

19+
20+
#Initiatve variable
2021
inverse_i <- NULL
2122

23+
#1-4
2224
set <- function(y) {
2325
x <<- y
2426
inverse_i <<- NULL

0 commit comments

Comments
 (0)