I would like to write the nth root, it's fairly simple as
\usepackage{amsmath}
\begin{equation}
a = \sqrt[n]{b}
\end{equation}
but I get the output as
Can anybody help me with this. Thanks!
Edit: I have added the MWE
As I was preparing the MWE, I noticed that there is a new sqrt definition in the document setup I borrowed.
\documentclass{memoir}
\usepackage{amsmath}
\let\oldsqrt\sqrt
\def\sqrt{\mathpalette\DHLhksqrt}
\def\DHLhksqrt#1#2{%
\setbox0=\hbox{$#1\oldsqrt{#2\,}$}\dimen0=\ht0
\advance\dimen0-0.2\ht0
\setbox2=\hbox{\vrule height\ht0 depth -\dimen0}%
{\box0\lower0.4pt\box2}}
\begin{document}
\begin{equation}
a = \sqrt[n]{b}
\end{equation}
\end{document}
Now how to get the nth root in this new sqrt?

\documentclassand ending with\end{document}that results in the problematic output. That will give us the information we need to debug the problem. – barbara beeton Jul 03 '19 at 02:13MWE? Please refer this link https://tex.meta.stackexchange.com/questions/430/text-building-blocks about how to postMWE– MadyYuvi Jul 03 '19 at 04:26