vectorDotProduct = zipWith ( * )
(and this doesn't even include the sum)
map ( * ) has type Num a => [a] -> [a -> a] which is not really what the dot product should be.
vectorDotProduct = zipWith ( * )
(and this doesn't even include the sum)
map ( * ) has type Num a => [a] -> [a -> a] which is not really what the dot product should be.