Vectors and Matrices
Vector Magnitude
Compute the Euclidean length ||v|| of a 2-component vector by squaring each component, summing the squares, and taking the square root. The example is chosen so the result is a whole number.
Example
Euclidean norm
The magnitude (or norm) of v is ||v|| = sqrt(v[1]^2 + v[2]^2 + ...). It equals the length of the arrow from the origin to the point v.
Pythagorean triple
A vector whose squared components sum to a perfect square has an integer magnitude. The 3-4-5 right triangle is the simplest example.