aboutsummaryrefslogtreecommitdiffstats
path: root/buch/chapters/50-permutationen/images/permutation.tex
blob: ee58d4a352f635dfe69671282d7de9d1f402e87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%
% permutation.tex -- Definition einer Permutation
%
% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
%
\documentclass[tikz]{standalone}
\usepackage{amsmath}
\usepackage{times}
\usepackage{txfonts}
\usepackage{pgfplots}
\usepackage{csvsimple}
\usetikzlibrary{arrows,intersections,math}
\begin{document}
\def\skala{1}
\begin{tikzpicture}[>=latex,thick,scale=\skala]

\def\sx{0.8}
\def\sy{1}
\begin{scope}[xshift=-3cm]
\foreach \x in {1,...,6}{
	\node at ({(\x-1)*\sx},\sy) [above] {$\tiny\x$};
	\fill ({(\x-1)*\sx},\sy) circle[radius=0.05];
	\fill ({(\x-1)*\sx},0) circle[radius=0.05];
}
\draw[->] (0,\sy) to[out=-70,in=110] (\sx,0);
\draw[<-] (0,0) to[out=70,in=-110] (\sx,\sy);
\draw[->] ({2*\sx},\sy) -- ({2*\sx},0);
\draw[->] ({3*\sx},\sy) to[out=-70,in=110] ({4*\sx},0);
\draw[->] ({4*\sx},\sy) to[out=-70,in=110] ({5*\sx},0);
\draw[->] ({5*\sx},\sy) to[out=-110,in=70] ({3*\sx},0);
\end{scope}
\node at (2.4,{\sy/2}) {$\mathstrut=\mathstrut$};
\node at (5,{\sy/2}) {$\displaystyle
\renewcommand{\arraystretch}{1.4}
\begin{pmatrix}
1&2&3&4&5&6\\
2&1&3&5&6&4
\end{pmatrix}
$};

\end{tikzpicture}
\end{document}