Compute ∣v∣=x2+y2|\mathbf{v}| = \sqrt{x^2 + y^2}∣v∣=x2+y2 (2D) or x2+y2+z2\sqrt{x^2 + y^2 + z^2}x2+y2+z2 (3D).