Dot Product

A dot product is an algebraic operation that takes two equal length list of numbers, usually two vectors that results in a single number.

it is defined as the sum of the products of numbers of both lists at the same index, or formally:

The dot product is commutative, meaning:

And also satisfies distribution so:

Properties

A vector is perpendicular to another if their dot product is 0. In other words: