dot product

The dot product is an inner product over a Euclidean vector space. As an operation, it takes as argument two vectors and returns a single real number.

Formally,
the dot product on a Euclidean vector space Rn can be defined using Cartesian coordinates:

ab=i=1naibi

where xi is the ith element of x as an ordered tuple;
or it can be defined geometrically as

ab=|a||b|cosθ

where |x| is the magnitude of x, and θ is the angle between a and b.


Powered by Forestry.md