【047_ヒルベルト空間】コマ大数学科


【047_ヒルベルト空間】コマ大数学科


  \begin{tikzpicture}
    \coordinate (O) at (0,0);
    \coordinate (A) at (1,0);
    \coordinate (B) at (60:1);
    \coordinate (C) at (80:0.7);    
    \draw [very thick] (O)--(A)--(B)--(C)--cycle;

% 内の正方形の作成
\foreach \x/\y/\z in {B/C/\maruichi,C/O/\maruni,O/A/\marusan,A/B/\marushi}
{\coordinate (\x'') at ($(\y)!1!90:(\x)$);
\coordinate (\y') at ($(\x)!1!-90:(\y)$);
\filldraw[very thick,fill=cyan!50!white,fill opacity=0.5]  (\y)--(\x'')--(\y')--(\x)--cycle;
\node at ($(\x)!0.5!(\x'')$){$\z$};
}

% 8正方形の作成
\foreach \x/\y/\z in {A/C/\maruhachi,B/O/\marugo,C/A/\maruroku,O/B/\marushichi}
{\coordinate (\x2) at ($(\y')!1!90:(\x'')$);
\coordinate (\y1) at ($(\x'')!1!-90:(\y')$);
\filldraw[very thick,fill=orange!50!white,fill opacity=0.5]  (\x'')--(\y')--(\x2)--(\y1)--cycle;
\node at ($(\x'')!0.5!(\x2)$){$\z$};
}
% 9,10正方形の作成
\foreach \x/\y/\z/\color in {O/B/\marukyu/red,A/C/\marujyu/green}
{\coordinate (\x2) at ($(\y)!1!90:(\x)$);
\coordinate (\y1) at ($(\x)!1!-90:(\y)$);
\filldraw[very thick,fill=\color!50!white,fill opacity=0.5]  (\x)--(\y)--(\x2)--(\y1)--cycle;
\node at ($(\x)!0.5!(\x2)$){$\z$};
}