![左侧带有较长水平线的平方根符号](https://linux22.com/image/462806/%E5%B7%A6%E4%BE%A7%E5%B8%A6%E6%9C%89%E8%BE%83%E9%95%BF%E6%B0%B4%E5%B9%B3%E7%BA%BF%E7%9A%84%E5%B9%B3%E6%96%B9%E6%A0%B9%E7%AC%A6%E5%8F%B7.png)
答案1
并未在所有情况下进行测试,但至少这是接近的:
\documentclass{article}
\usepackage{tikz}
\newcommand{\myroot}[2][]{\tikz[line join=round, baseline=(A.text)]{
\node[inner ysep=2pt, inner xsep=1pt](A){$\displaystyle{#2}$};
\draw([yshift=-1mm]A.north east)--(A.north east)--(A.north west)
--([shift={(-.18,.05)}]A.south west)
--([xshift=-2.7mm]A.west)
--++({-.034*width("$\scriptscriptstyle #1$")},0)node[inner ysep=1pt, above, midway]{$\scriptscriptstyle #1$};
\begin{scope}
\clip(A.north west)--([shift={(-.18,.05)}]A.south west)--([shift={(-2.7mm,.2pt)}]A.west)--++(.1,0);
\draw[very thick, line cap=round]([shift={(-.18,.05)}]A.south west)
--([xshift={-2.7mm}]A.west);
\end{scope}
}}
\begin{document}
\[
z_k=\sqrt[1-r]{\frac{p_k}{p_k+p_{k+1}}}\cdot x_k
\]
\[
z_k=\myroot[1-r]{\frac{p_k}{p_k+p_{k+1}}}\cdot x_k
\]
\end{document}
答案2
Sandy G 抢先了我一步,但基于https://tex.stackexchange.com/a/194835/1090
\documentclass{article}
\usepackage{tikz}
\newcommand{\mysqrt}[2][]{%
\begin{tikzpicture}[baseline={(a.base)}]
\sbox0{$\scriptscriptstyle #1$}
\node[inner sep=1pt] (a) {\hspace*{0.5ex}$#2$\kern-1pt};
\draw[line cap=round] ([yshift=0.5ex]a.west) -- +(\dimexpr-1pt-\wd0,0pt);
\draw ([xshift=-.5\wd0, yshift=1ex]a.west) node (b) {\box0};
\draw[] ([yshift=0.5ex]a.west) -- ([xshift=0.7ex]a.south west);
\draw[line cap=round] ([xshift=0.7ex]a.south west) -- ([xshift=0.7ex]a.north west) -- (a.north east) -- +(0pt,-1pt);
\end{tikzpicture}%
}
\begin{document}
\[
\mysqrt{\frac{p-k}{p_k+p_{k+1}}}
+
\mysqrt[1-r]
{\frac{p-k}{p_k+p_{k+1}}}
\]
\end{document}