forked from rdpeng/ProgrammingAssignment2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.Rhistory
More file actions
38 lines (38 loc) · 641 Bytes
/
.Rhistory
File metadata and controls
38 lines (38 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
?wd
setwd("~/R_Code/ProgrammingAssignment2")
source('~/R_Code/ProgrammingAssignment2/cachematrix.R')
y <- matrix(1:4,2,2)
y
makeCacheMatrix(mymat)
mymat
y
makeCacheMatrix$set(mymat)
makeCacheMatrix.set(mymat)
set(mymat)
cacheSolve(y)
makeCacheMatrix(y)
y
cacheSolve(y)
m
makeCacheMatrix(x)
set(y)
set
z <- makeCacheMatrix(y)
z
y
z$set()
z$set(y)
y
cachesolve(z)
cacheSolve(z)
solve(y)
y
cacheSolve(z)
source('~/R_Code/ProgrammingAssignment2/cachematrix.R')
z <- makeCacheMatrix(y)
z
z <- makeCacheMatrix()
z$set(y)
cacheSolve(z)
source('~/R_Code/ProgrammingAssignment2/cachematrix.R')
source('~/R_Code/ProgrammingAssignment2/cachematrix.R')