Dot Product

Vectors

Let's Do Math!

Intro: Enter two same-length vectors; we compute $\vec{a}\cdot\vec{b}$ and, when possible, the angle $\theta$ via $\cos\theta=\dfrac{\vec{a}\cdot\vec{b}}{\|\vec{a}\|\,\|\vec{b}\|}$.

Worked example

FAQs

Different dimensions?

Vectors must have the same length $n$; we compute $\sum_{i=1}^{n} a_i b_i$.

Orthogonal test?

If $\vec{a}\cdot\vec{b}=0$ and both vectors are nonzero, the angle is $90^{\circ}$ (orthogonal).

Units for the angle?

We report degrees by default; you can request radians.

Why choose MathGPT?

How this calculator works

Related