答案1
首先将整体绘制为数组,并放置根符号。然后,将根符号绘制在其上方。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\sbox0{$
\begin{array}[b]{@{\kern.25em}ccccc@{}}
0 & \frac{\pi}{6} & \frac{\pi}{4} & \frac{\pi}{3} & \frac{\pi}{2}
\\[2ex]
\llap{\rlap{$\sin$}\kern3.25em}0 & 1 & 2 & 3 & 4 \\
\llap{\rlap{$\cos$}\kern3.25em}4 & 3 & 2 & 1 & 0 \\
\end{array}
$}
\sbox2{$
\sqrt{
\def\x#1{\vphantom{#1}\hphantom{\frac{\pi}{6}}}
\def\y#1{\phantom{#1}}
\begin{array}[b]{@{\kern.25em}ccccc@{}}
\y0 & \x1 & \x2 & \x3 & \x4 \\
\y4 & \x3 & \x2 & \x1 & \x0 \\
\end{array}
}
$}
\kern\dimexpr
3.25em -.25em -\wd2 + \wd0
\relax
\dfrac{\usebox2\llap{\usebox0}}{2}
\]
\end{document}