Math 2.0

definition

Angle between two vectors

Definition

Let nn be a positive integer, and let uu and vv be nonzero vectors in Rn\mathbb{R}^n. Let u⋅v=u1v1+⋯+unvnu \cdot v = u_1 v_1 + \dots + u_n v_n be their dot product, and let ∥u∥\|u\| and ∥v∥\|v\| be their lengths. The angle between uu and vv is the unique real number θ\theta with 0≤θ≤π0 \leq \theta \leq \pi such that cos⁡θ=u⋅v∥u∥ ∥v∥.\cos \theta = \frac{u \cdot v}{\|u\| \, \|v\|}. The Cauchy–Schwarz inequality ∣u⋅v∣≤∥u∥ ∥v∥|u \cdot v| \leq \|u\| \, \|v\| makes sure that the quotient is in [−1,1][-1, 1]. Thus θ=arccos⁡(u⋅v∥u∥ ∥v∥)\theta = \arccos\left(\frac{u \cdot v}{\|u\| \, \|v\|}\right) exists.

Remarks

The angle is 00 if and only if v=cuv = c u for a real number c>0c > 0. It is π\pi if and only if v=cuv = c u for a real number c<0c < 0. The angle does not depend on the order of the vectors. It does not change when you multiply uu or vv by a positive number. Mathlib uses the same formula for all vectors. With the convention 0/0=00 / 0 = 0, the angle between the zero vector and any vector is then π/2\pi / 2.

Explanations

L1 human

Put the two arrows at the same start point. The angle between them is the opening between the arrows, measured in radians from 00 to π\pi. For example, (1,0)(1, 0) and (0,1)(0, 1) have dot product 00, so the angle between them is arccos⁡0=π/2\arccos 0 = \pi / 2, a right angle.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 3 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Euclidean vector concept
  2. Length of a vector concept
  3. Angle between two vectors definition

Sources

  1. Web https://en.wikipedia.org/wiki/Angle, Inner product
  2. Web https://en.wikipedia.org/wiki/Dot_product, Geometric definition