This is an example of a homework assignment solution. It is written in RMarkdown, and was knit to PDF. It is most useful to look at the .Rmd file that produced the PDF. You may use that .Rmd file as a template for you own homework assignments.
Note that these solutions are incorrect! Do not just copy these answers as solutions for problem set #1.
v1 <- 1:3
v2 <- 10:12
v1
## [1] 1 2 3
v2
## [1] 10 11 12
mat1 <- matrix(1:9,3,3)
mat1
## [,1] [,2] [,3]
## [1,] 1 4 7
## [2,] 2 5 8
## [3,] 3 6 9
mat1 %*% v1
## [,1]
## [1,] 30
## [2,] 36
## [3,] 42
plot(cars)
\[\frac{\sqrt{10 \pm x^7}}{2 - \alpha}\]