Skip to main content
2 of 2
Routine cleanup
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

Using standard notation for vector magnitude

The mathematical notation for the magnitude of a vector is $\vert x \vert$, but this does not work:

∥ {1, 2, 3} ∥

Is there any way to overload the DoubleVerticalBar symbol so my Mathematica code would look like a textbook formula?