R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

 A <- matrix( c(1, 3, 2, -1, 2, 1, 0, 1, 0), nrow=3,ncol=3,byrow = TRUE)
A
##      [,1] [,2] [,3]
## [1,]    1    3    2
## [2,]   -1    2    1
## [3,]    0    1    0
 B <- matrix( c(4, 1, 2, 1, 0, 1, 3, 1, 5), nrow=3,ncol=3,byrow = TRUE)
 B
##      [,1] [,2] [,3]
## [1,]    4    1    2
## [2,]    1    0    1
## [3,]    3    1    5

Problem Chapter M C21 answered using R

C21 † Compute the product AB of the two matrices below using both the definition of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

A %*% B
##      [,1] [,2] [,3]
## [1,]   13    3   15
## [2,]    1    0    5
## [3,]    1    0    1

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.