Rob Creel
August 6, 2017
In a world where education happens…
…online,
…this Shiny Gadget explains…
…the dot product.
This slide has embedded R code, to demponstrate a dot product.
# Define vectors x and y.
x <- c(1, -2, 3, 4, 5)
y <- c(-9, -8, 7, 6, -5)
# Compute the product componentwise.
x * y
[1] -9 16 21 24 -25
# Compute the dot product.
(x %*% y)[1, 1]
[1] 27
Sign up for Online MathTools Pro for the Shiny App which makes the dot product interactive!