For a 2D vector ( mathbf{v} = langle x, y rangle ), use ( |mathbf{v}| = sqrt{x^2 + y^2} )
For a 3D vector ( mathbf{v} = langle x, y, z rangle ), use ( |mathbf{v}| = sqrt{x^2 + y^2 + z^2} )
For an (n)-dimensional vector ( mathbf{v} = langle v_1, v_2, dots, v_n rangle ), use ( |mathbf{v}| = sqrt{v_1^2 + v_2^2 + cdots + v_n^2} )
Square each component of the vector
Add the squared values
Take the square root of the sum
