Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

benno001/ProgrammingAssignment2

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 

Repository files navigation

Using the function

makeCacheMatrix returns a list of functions that enable the user to:

  • set the value of the vector
  • get the value of the vector
  • set the value of the mean
  • get the value of the mean

The input for makeCacheMatrix must be a square matrix.

cacheSolve returns the inverted matrix. When already cached, it retrieves from the cache. Else, it will compute a new inverted matrix.

Example input:

exampleVector <- seq(1:4)

exampleMatrix <- matrix(exampleVector, 2)

exampleCacheMatrix <- makeCacheMatrix(exampleMatrix)

cacheSolve(exampleCacheMatrix)

Example output:

 [,1] [,2]
 
[1,]   -2  1.5

[2,]    1 -0.5

About

Repository for Programming Assignment 2 for R Programming on Coursera

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.