Skip to content

Fredase/Cousera_Assignment.R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Cousera_Assignment.R

create a special "matrix" object that can cache its inverse

the function will reurn the inverse of a matrix

makeCacheMatrix <- function(x = matrix()){ p <- NULL set <- function(y){ x <<- y p <<- NULL }

  get <- function(x)
  setmatrix <- function(1/x) p <<- 1 / x
  getInverse <- function() p

}

solveCache <- function(x, ...){ ##returns the inverse of matrix "x" return(makeCacheMatrix) }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages