Skip to main content
DigiCalcs

如何计算Vector Dot Product

learn.whatIsHeading

The dot product A·B = |A||B|cos(θ) produces a scalar measuring how much two vectors point in the same direction. A·B=0 means they are perpendicular. Fundamental in physics, machine learning, and computer graphics.

分步指南

  1. 1A·B = a₁b₁ + a₂b₂ + a₃b₃ (component form)
  2. 2cos(θ) = A·B / (|A||B|)
  3. 3|A| = √(a₁² + a₂² + a₃²)

例题解析

输入
A=[1,2,3] · B=[4,5,6]
结果
A·B = 4+10+18 = 32 · θ = 12.9°
Small angle = similar direction

设置

隐私条款关于© 2026 DigiCalcs