aboutsummaryrefslogtreecommitdiffstats
path: root/buch/chapters/040-rekursion/images/gammaplot.tex
blob: 4e11d324fca3f5365c465729ce0eafde8d02f2a7 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%
% gammaplot.tex -- template for standalon tikz images
%
% (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}
\input{gammapaths.tex}
\begin{document}
\def\skala{1}
\begin{tikzpicture}[>=latex,thick,scale=\skala]

\definecolor{darkgreen}{rgb}{0,0.8,0}

\draw[->] (-6.1,0) -- (5.3,0) coordinate[label={$z$}];
\draw[->] (0,-5.1) -- (0,6.4) coordinate[label={right:$\Gamma(z)$}];

\foreach \x in {-1,-2,-3,-4,-5,-6}{
	\draw (\x,-0.1) -- (\x,0.1);
	\draw[line width=0.1pt] (\x,-5) -- (\x,6.2);
}
\foreach \x in {1,2,3,4,5}{
	\draw (\x,-0.1) -- (\x,0.1);
	\node at (\x,0) [below] {$\x$};
}
\foreach \y in {-5,-4,-3,-2,-1,1,2,3,4,5,6}{
	\draw (-0.1,\y) -- (0.1,\y);
}
\foreach \y in {1,2,3,4,5,6}{
	\node at (0,\y) [left] {$\y$};
}
\foreach \y in {-1,-2,-3,-4,-5}{
	\node at (0,\y) [right] {$\y$};
}
\foreach \x in {-1,-3,-5}{
	\node at (\x,0) [below left] {$\x$};
}
\foreach \x in {-2,-4,-6}{
	\node at (\x,0) [above left] {$\x$};
}

\def\dx{1}
\def\dy{1}

\begin{scope}
\clip (-6.1,-5) rectangle (4.3,6.2);

\draw[color=darkgreen,line width=1.4pt] \gammasinplus;
\draw[color=darkgreen,line width=1.4pt] \gammasinone;
\draw[color=darkgreen,line width=1.4pt] \gammasintwo;
\draw[color=darkgreen,line width=1.4pt] \gammasinthree;
\draw[color=darkgreen,line width=1.4pt] \gammasinfour;
\draw[color=darkgreen,line width=1.4pt] \gammasinfive;
\draw[color=darkgreen,line width=1.4pt] \gammasinsix;

\draw[color=red,line width=1.4pt] \gammaplus;
\draw[color=red,line width=1.4pt] \gammaone;
\draw[color=red,line width=1.4pt] \gammatwo;
\draw[color=red,line width=1.4pt] \gammathree;
\draw[color=red,line width=1.4pt] \gammafour;
\draw[color=red,line width=1.4pt] \gammafive;
\draw[color=red,line width=1.4pt] \gammasix;

\end{scope}

\fill[color=blue] (1,1) circle[radius=0.08];
\node[color=blue] at (1,1-0.2) [below] {$\Gamma(1)=0!$};
\fill[color=blue] (2,1) circle[radius=0.08];
\node[color=blue] at (2,1) [below right] {$\Gamma(2)=1!$};
\fill[color=blue] (3,2) circle[radius=0.08];
\node[color=blue] at (3,2) [right] {$\Gamma(3)=2!$};
\fill[color=blue] (4,6) circle[radius=0.08];
\node[color=blue] at (4,6) [right] {$\Gamma(4)=3!$};

\begin{scope}[xshift=3cm,yshift=-2.4cm]
	\draw[color=red,line width=1.4pt] (-1,0) -- (0,0);
	\draw[color=darkgreen,line width=1.4pt] (-1,-0.7) -- (0,-0.7);
	\node at (0.1,0) [right] {$\Gamma(z)$};
	\node at (0.1,-0.7) [right] {$\Gamma(z)+\sin\pi z$};
\end{scope}

\end{tikzpicture}
\end{document}