When calculating the modulus of a complex number in Mathematica, the standard (and probably least-ugly) way of doing it is by using the
Abs[ ] function. When doing it by hand or in LaTeX though, the standard way is to nest the complex number in between vertical bars "| |", like so:
Is there a way to do this in Mathematica? That is, is there a way to use "| |" just as we would use
Abs when inputting, and not just formatting the output? I dislike seeing and using a cluster of
Abs functions every time I work with complex numbers.