Professional Documents
Culture Documents
###################################
## The function "makeCacheMatrix" creates a new, unique environment.
# The inverse matrix is cached inside the object m, within the main
# environment, which is unique for EACH instance the function is called.
## The output of the function is a list with 5 named elements, which are
# the five functions defined herein: setmatrix, getmatrix, setinverse,
# getinverse and getenv
###################################
###################################
## The function "cacheSolve" returns the inverse of the matrix that is
# returned by makeCacheMatrix function, e.g. xMat$getmatrix()
###################################