答案1
应该是吗(s+t)^2=2s^2
?在这种情况下:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=3]
\draw (0,0) -- (1.412,0) -- (1.412,-1.412) -- (0,-1.412) -- cycle;
\draw (0,0) -- (1,0) -- (1,-1) -- (0,-1) -- cycle;
\node at (.5,.2) {\Large $s$};
\node at (1.206,.2) {\Large $t$};
\node at (-.2,-.5) {\Large $s$};
\node at (-.2,-1.206) {\Large $t$};
\end{tikzpicture}
\end{document}
编辑:感谢@TomBombadil 指出上述内容tikzpicture
可以通过以下方式改进:
\begin{tikzpicture}[scale=3]
\draw (0,0) rectangle ({sqrt(2)},{-sqrt(2)});
\draw (0,0) rectangle (1,-1);
\node at (.5,.2) {\Large $s$};
\node at (1.206,.2) {\Large $t$};
\node at (-.2,-.5) {\Large $s$};
\node at (-.2,-1.206) {\Large $t$};
\end{tikzpicture}