Routine Name: vectorSub
Author: David Merkley
Language: Python
Description/Purpose: subtracts two vectors
Input: two vectors
Output: subtraction of vectors
Implementation/Code:
def vectorSub(x, y):
return [x[i] - y[i] for i in range(len(x))]