Files
maing01_06/Band2/Horner01.tikz
Sven Riwoldt 5e90368501 Band 2
2024-02-07 05:17:15 +01:00

204 lines
8.0 KiB
Plaintext

%!TEX root=Band2.tex
%\begin{tikzpicture}[>=latex]
%
%\draw[cyan, densely dotted] (-2,0) grid (12,14);
%\useasboundingbox (-2,0) rectangle (12,14);
%
%%nodes=draw,
%\matrix (m1) [anchor=west,draw,row sep=6mm,column sep=5mm,matrix of nodes,column 6/.style={anchor=base west}, left delimiter=\{ ] at (1, 12)
%{
%\phantom{a} & $3$ & $0$\footnotemark & $1$ & $-5 $ & $2$ \\
%\phantom{a} & \phantom{a} & $6$ & $12$ & $26$ & $42$\\
%$2$ & $3$ & $6$ & $13$ & $21$ & $44=g(2)$\\
%};
%
%\matrix (m2) [anchor=west,draw,row sep=6mm,column sep=5mm,matrix of nodes,column 5/.style={anchor=base west}, left delimiter=\{ ] at (1, 9)
% {
%\phantom{a} & \phantom{a} & $6$ & $24$ & $74$\\
% $2$ & $3$ & $12$ & $37$ & $95=g'(2)$ \\
%};
%
%\matrix (m3) [anchor= west,draw,row sep=6mm,column sep=5mm,matrix of nodes,column 4/.style={anchor=base west} , left delimiter=\{] at (1, 6.5)
%{
%\phantom{a} & \phantom{a} & $6$ & $36$\\
% $2$ & $3$ & $18$ & $73=\frac{g''(2)}{2!}$ \phantom{a}\\
%};
%
%\matrix (m4) [anchor= west,draw,row sep=6mm,column sep=5mm,matrix of nodes,column 3/.style={anchor=base west} , left delimiter=\{] at (1, 4)
%{
%\phantom{a} & \phantom{a} & $6$\\
% $2$ & $3$ & $24=\frac{g'''(2)}{3!}$ \phantom{a}\\
%};
%
%\matrix (m5) [anchor= west,draw,row sep=6mm,column sep=5mm,matrix of nodes,column 4/.style={anchor=base west} , left delimiter=\{] at (1, 2)
%{
%\phantom{a} &$3=\frac{g^{4}(2)} {4!}$ \\
%};
%
%\draw ([xshift=.1cm]m1-1-1.north east) -- ([xshift=.1cm,yshift=-0.3cm]m5-1-1.south east);
%
%\draw ([yshift=-.25cm]m1-2-1.south west) -- ([yshift=-.25cm,xshift=1.2cm]m1-2-6.south east);
%
%\draw ([yshift=-.25cm]m2-1-1.south west) -- ([yshift=-.25cm,xshift=1.3cm]m2-1-5.south east);
%
%\draw ([yshift=-.25cm]m3-1-1.south west) -- ([yshift=-.25cm,xshift=16mm]m3-1-4.south east);
%
%\draw ([yshift=-.25cm]m4-1-1.south west) -- ([yshift=-.25cm,xshift=18mm]m4-1-3.south east);
%
%%\draw ([yshift=-.25cm]m5-1-1.south west) -- ([yshift=-.25cm,xshift=3mm]m5-1-2.south east);
%%\draw ([yshift=2mm]m1-3-6.north west) -- ([yshift=-1mm]m1-3-6.south west);
%
% %\draw ([yshift=-.25cm]m1-2-6.south west) -- ([yshift=-.25cm,xshift=4mm]m1-2-6.south east);
%
%% \draw ([yshift=-.15cm]m1-3-6.south west) -- ([yshift=-.15cm]m1-3-6.south east);
%
%
%\node[circle,draw] (del-left-1) at ($0.5*(m1-3-1.south west)+0.5*(m1-1-1.north west)$){};
%\node[circle,draw] (del-left-2) at ($0.5*(m2-2-1.south west)+0.5*(m2-1-1.north west)$){};
%\node[circle,draw] (del-left-3) at ($0.5*(m3-2-1.south west)+0.5*(m3-1-1.north west)$){};
%\node[circle,draw] (del-left-4) at ($0.5*(m4-2-1.south west)+0.5*(m4-1-1.north west)$){};
%\node[circle,draw] (del-left-5) at ($0.5*(m5-1-1.south west)+0.5*(m5-1-1.north west)$){};
%\node[left=10pt] at (del-left-1.west) {1. Schritt};
%\node[left=10pt] at (del-left-2.west) {2. Schritt};
%\node[left=10pt] at (del-left-3.west) {3. Schritt};
%\node[left=10pt] at (del-left-4.west) {4. Schritt};
%\node[left=10pt] at (del-left-5.west) {5. Schritt};
%
%%\draw ($(m1-2-5.north east)!0.5!(m1-2-5.north west)$) -- ($(m1-2-5.south east)!0.5!(m2-2-2.south west)$);
%%\draw($(m1-2-5.north east)!50!(m1-2-6.north west)$)--($(m1-3-5.south east)!50!(m1-3-6.south west)$);
%%\draw([yshift=3mm]m1-3-6.north west)--(m1-3-6.south west);
%
%\hhlline{m5}{1}{2};
%
%% \node[rectangle,draw] (del-left-2) at ($(m2-2-1)-(m2-1-1)$) {\tikz{\path (m2-2-2.north east) rectangle (m2-2-1.south west);}};
%
%
%
% %\mymatrixbracetop{2}{6}{$E'$}
%
%%\node[font=\color{red}] at (m2.center){X};
%
%%\foreach \xy in {$1*(m2-1-1)$, $1*(m2-2-1)$}{
%% \node at (\xy) {\xy};
%%}
%
%\end{tikzpicture} \footnotetext{Man beachte, ...}
\begin{tikzpicture}[>=latex]
%\draw[cyan, densely dotted] (-2,0) grid (8.5,9.5);
\useasboundingbox (-2,0) rectangle (8.5,9.5);
%nodes=draw,
\matrix (m1) [anchor=west,row sep=2mm,column sep=5mm,matrix of math nodes,column 6/.style={anchor=base west}, left delimiter=\{ ] at (1, 8.4)
{
\phantom{a} & 3 & 0\footnotemark & 1 & -5 & 2 \\
\phantom{a} & \phantom{a} & 6 & 12 & 26 & 42\\
2 & 3 & 6 & 13 & 21 & 44=g(2)\\
};
\matrix (m2) [anchor=west,row sep=2mm,column sep=5mm,matrix of math nodes, column 5/.style={anchor=base west}, left delimiter=\{ ] at (1, 6.4)
{
\phantom{a} & \phantom{a} & 6 & 24 & 74\\
2 & 3 & 12 & 37 & 95=g'(2) \\
};
\matrix (m3) [anchor=west,row sep=2mm,column sep=5mm,matrix of math nodes,column 4/.style={anchor=base west}, left delimiter=\{ ] at (1, 4.5)
{
\phantom{a} & \phantom{a} & 6 & 36\\
2 & 3 & 18 & 73=\frac{g''(2)}{2!} \\
};
\matrix (m4) [anchor=west,row sep=2mm,column sep=5mm,matrix of math nodes,column 3/.style={anchor=base west}, left delimiter=\{ ] at (1, 2.4)
{
\phantom{a} & \phantom{a} & 6\\
2 & 3 & 24=\frac{g'''(2)}{3!} \\
};
\matrix (m5) [anchor=west,row sep=2mm,column sep=5mm,matrix of math nodes,column 2/.style={anchor=base west}, left delimiter=\{ ] at (1, 0.7)
{
\phantom{a} & 3=\frac{g^{(4)}(2)}{4!} \\
};
\node[circle] (del-left-1) at ($0.5*(m1-3-1.south west)+0.5*(m1-1-1.north west)$){};
\node[left=10pt] at (del-left-1.west) {1. Schritt};
%\draw ($(m1-2-5.north east)!0.5!(m1-2-5.north west)$) -- ($(m1-2-5.south east)!0.5!(m2-2-2.south west)$);
%\draw($(m1-2-5.north east)!50!(m1-2-6.north west)$)--($(m1-3-5.south east)!50!(m1-3-6.south west)$);
%\draw([yshift=3mm]m1-3-6.north west)--(m1-3-6.south west);
%\draw ([yshift=-3mm]m1-2-1.south west) -- ([yshift=-3mm,xshift=10mm]m1-2-6.south east);
\draw ($0.5*(m1-2-1.south west)+0.5*(m1-3-1.north west)$) -- ([xshift=5mm]$0.5*(m1-2-6.south east)+0.5*(m1-3-6.north east)$);
\draw ([yshift=1mm]m1-3-6.north west) -- (m1-3-6.south west);
\draw (m1-3-6.south west) -- (m1-3-6.south east);
\draw ($0.5*(m2-1-1.south west)+0.5*(m2-2-1.north west)$) -- ([xshift=5mm]$0.5*(m2-1-5.south east)+0.5*(m2-2-5.north east)$);
%Ende Zeile 2
%vert
\draw ([yshift=1mm]m2-2-5.north west) -- (m2-2-5.south west);
%horiz
\draw (m2-2-5.south west) -- (m2-2-5.south east);
%Trennlinie
\draw ([yshift=1.5mm]$0.5*(m3-1-1.south west)+0.5*(m3-2-1.north west)$) -- ([xshift=5mm]$0.5*(m3-1-4.south east)+0.5*(m3-2-4.north east)$);
\node[circle] (del-left-2) at ($0.5*(m2-2-1.south west)+0.5*(m2-1-1.north west)$){};
\node[left=10pt] at (del-left-2.west) {2. Schritt};
\node[circle] (del-left-3) at ([yshift=-1mm]$0.5*(m3-1-1.south west)+0.5*(m3-2-1.north west)$){};
\node[left=10pt] at (del-left-3.west) {3. Schritt};
\draw ([yshift=1mm]m3-2-4.north west) -- (m3-2-4.south west);
\draw (m3-2-4.south west) -- (m3-2-4.south east);
%\draw ([yshift=-3mm,thick]m2-1-1.south west) -- ([yshift=-3mm,xshift=10mm]m2-1-5.south east);
\draw ([yshift=1.5mm]$0.5*(m4-1-1.south west)+0.5*(m4-2-1.north west)$) -- ([xshift=5mm]$0.5*(m4-1-3.south east)+0.5*(m4-2-3.north east)$);
\draw ([yshift=1mm]m4-2-3.north west) -- (m4-2-3.south west);
\draw (m4-2-3.south west) -- (m4-2-3.south east);
\node[circle] (del-left-4) at ([yshift=-1mm]$0.5*(m4-1-1.south west)+0.5*(m4-2-1.north west)$){};
\node[left=10pt] at (del-left-4.west) {4. Schritt};
\draw ($0.5*(m1-2-1.south west)+0.5*(m1-3-1.north west)$) -- ([xshift=5mm]$0.5*(m1-2-6.south east)+0.5*(m1-3-6.north east)$);
\draw ([yshift=1mm]m1-3-6.north west) -- (m1-3-6.south west);
\draw (m1-3-6.south west) -- (m1-3-6.south east);
\draw ($0.5*(m2-1-1.south west)+0.5*(m2-2-1.north west)$) -- ([xshift=5mm]$0.5*(m2-1-5.south east)+0.5*(m2-2-5.north east)$);
\draw ([yshift=1mm]m3-2-4.north west) -- (m3-2-4.south west);
\draw (m3-2-4.south west) -- (m3-2-4.south east);
%\draw ([yshift=-3mm,thick]m2-1-1.south west) -- ([yshift=-3mm,xshift=10mm]m2-1-5.south east);
\node[circle] (del-left-5) at ([yshift=1mm]$0.5*(m5-1-1.south west)+0.5*(m5-1-1.north west)$){};
\node[left=10pt] at (del-left-5.west) {5. Schritt};
\draw (m5-1-2.north west) -- (m5-1-2.south west);
\draw (m5-1-2.south west) -- (m5-1-2.south east);
\draw ([yshift=5.5mm]m5-1-1.north west)-- ([yshift=1mm]m5-1-2.north east);
\draw(m1-1-1.north east)--([yshift=-2mm]m5-1-1.south east);
%\mymatrixbracetop{2}{6}{$E'$}
%\node[font=\color{red}] at (m2.center){X};
%\foreach \xy in {$1*(m2-1-1)$, $1*(m2-2-1)$}{
% \node at (\xy) {\xy};
%}
\end{tikzpicture} \footnotetext{Man beachte, ...}
\newpage