Routine Name: vectorDotProduct
Author: David Merkley
Language: Python
Description/Purpose: Multiplies the vector by the dot product
Input: two vectors
Output: the product
Implementation/Code:
def vectorDotProduct(x, y):
return sum([x[i] * y[i] for i in range(len(x))])