From eb402703eb96168dc4e1376bb78a299c0330a430 Mon Sep 17 00:00:00 2001 From: Swetha123-arch <23bit121@psgrkcw.ac.in> Date: Sat, 7 Dec 2024 14:55:26 +0530 Subject: [PATCH] Create R file --- R file | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 R file 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) +}