Dot Product

The dot product (also known as the inner product) is an operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number.

Given two vectors A and B in an n-dimensional space, represented as:

the dot product is defined as: