\lvert \rvert

The \lvert and \rvert commands are used in LaTeX to create vertical bars that act as delimiters. These are often used to denote absolute values, norms, or to enclose expressions where vertical bars are needed for clarity or notation purposes.

Examples

Absolute value of x

\lvert x \rvert

Absolute value of the sum of a and b

\lvert a + b \rvert

Magnitude (norm) of vector v

\lvert \vec{v} \rvert