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:

Week1-Assignment1-Question (A) Calculated dot product u and v
u= c(0.5,0.5)
v=c(3,-4)
dot.product.uandv<- u%*%v
dot.product.uandv
##      [,1]
## [1,] -0.5

You can also embed plots, for example:

Week1-Assignment1-Question (B) lengths of u and v - Euclidean norm
## [1] 0.7071068
## [1] 5
Week1-Assignment1-Question (C) Linear Combination of 3u-2v
##      [,1] [,2]
## [1,] -4.5  9.5
Week1-Assignment1-Question (D) what is the angle between u and v
##          [,1]
## [1,] 1.712693
Week1-Assignment1-Question (2) what is the angle between u and v
##      [,1] [,2] [,3]
## [1,]    1    1    3
## [2,]    2   -1    5
## [3,]   -1   -2    4
## [1] 1 2 6
## [1] -1.5454545 -0.3181818  0.9545455
##      [,1]
## [1,]    1
## [2,]    2
## [3,]    6

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