\documentclass{article}
\usepackage{mleftright}

\begin{document}

\begin{equation}
  \mleft\lvert x \mright\rvert
  \mleft( x \mright)
\end{equation}

\end{document}
