Dotproduct
The dot product, also called the scalar product, is a mathematical operation that takes two vectors of the same dimension and returns a scalar. For a = (a1, ..., an) and b = (b1, ..., bn), the dot product is a · b = a1b1 + a2b2 + ... + anbn. In Euclidean space R^n with the standard coordinates, this is the familiar sum of pairwise products. In real vector spaces the dot product is commutative (a · b = b · a) and bilinear (linear in each argument).
Key properties include a · a ≥ 0 with equality only when a = 0, which leads to the
Geometrically, a · b = ||a|| ||b|| cos θ, where θ is the angle between a and b. It also
Computationally, in coordinates a simple 2D example is a = (1, 2) and b = (3, 4); a ·
Related concepts include inner products in abstract vector spaces, Gram–Schmidt orthogonalization, and cosine similarity in data