[Tex/LaTex] How to write a long square root

equations

I am having such a hard time to write this formula in the LaTeX form. I have never used LaTeX before and I know this is not difficult, but how to get that long square root and exponential? Any help will be appreciated. Thanks.

enter image description here

Best Answer

This is the answer to your question.

\documentclass{article}

\begin{document}
\[
\mathit{dist} = 
\sqrt{ \left( \frac{dx}{hx} \right)^{\!\!2} +  \left( \frac{dy}{hy} \right)^{\!\!2} +  \left( \frac{dz}{hz} \right)^{\!\!2}}
\]
\end{document}

enter image description here

Related Question