Fast & Accurate Scalar Results for Vectors
The dot product (also known as scalar product or inner product) is a mathematical operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number. This operation combines two vectors to produce a scalar quantity.
Where |A| and |B| are the magnitudes of vectors A and B, and θ is the angle between them.
For two vectors A = (a₁, a₂, ..., aₙ) and B = (b₁, b₂, ..., bₙ), the dot product is calculated as:
Let's calculate the dot product of A = (2, 3, 1) and B = (4, -2, 5):
A · B = (2 × 4) + (3 × -2) + (1 × 5) = 8 - 6 + 5 = 7
The dot product has numerous applications in mathematics, physics, and engineering: