aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/zeta/images/primzahlfunktion2.tex
diff options
context:
space:
mode:
authorerik-loeffler <100943759+erik-loeffler@users.noreply.github.com>2022-08-15 09:54:10 +0200
committerGitHub <noreply@github.com>2022-08-15 09:54:10 +0200
commit504d47a5a03f60cd54425cfd97fbff750a3f9061 (patch)
tree74aef248a603bad26b825371af8526b008807950 /buch/papers/zeta/images/primzahlfunktion2.tex
parentMerge pull request #3 from haddoucher/sturmliouville/erik-branch (diff)
parentMerge pull request #49 from HeadAndToes/master (diff)
downloadSeminarSpezielleFunktionen-504d47a5a03f60cd54425cfd97fbff750a3f9061.tar.gz
SeminarSpezielleFunktionen-504d47a5a03f60cd54425cfd97fbff750a3f9061.zip
Merge branch 'AndreasFMueller:master' into master
Diffstat (limited to '')
-rw-r--r--buch/papers/zeta/images/primzahlfunktion2.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/buch/papers/zeta/images/primzahlfunktion2.tex b/buch/papers/zeta/images/primzahlfunktion2.tex
new file mode 100644
index 0000000..7425ce5
--- /dev/null
+++ b/buch/papers/zeta/images/primzahlfunktion2.tex
@@ -0,0 +1,63 @@
+%
+% primzahlfunktion2.tex -- Primzahlfunktion, alternativer Vorschlag
+%
+% (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\dx{0.38}
+\def\dy{0.5}
+
+\foreach \x in {1,...,30}{
+ \draw[color=gray!20] ({\x*\dx},0) -- ({\x*\dx},{10.5*\dy});
+}
+\foreach \y in {1,...,10}{
+ \draw[color=gray!20] (0,{\y*\dy}) -- ({30.5*\dx},{\y*\dy});
+}
+
+\draw[->] (-0.1,0) -- ({30.8*\dx},0) coordinate[label={$x$}];
+\draw[->] (0,-0.1) -- (0,{10.9*\dy}) coordinate[label={right:$\pi(x)$}];
+
+\def\segment#1#2#3{
+ %\draw[line width=0.1pt] ({#3*\dx},0) -- ({#3*\dx},{#2*\dy});
+ \draw[color=blue,line width=1.4pt]
+ ({#1*\dx},{#2*\dy}) -- ({#3*\dx},{#2*\dy});
+ \draw[color=blue,line width=0.3pt]
+ ({#3*\dx},{#2*\dy}) -- ({#3*\dx},{(#2+1)*\dy});
+ \draw ({#3*\dx},-0.1) -- ({#3*\dx},0.1);
+ \node at ({(#3)*\dx},-0.1) [below] {$#3\mathstrut$};
+}
+
+\foreach \y in {2,4,...,10}{
+ \draw (-0.1,{\y*\dy}) -- (0.1,{\y*\dy});
+ \node at (-0.1,{\y*\dy}) [left] {$\y\mathstrut$};
+}
+
+\begin{scope}
+\clip (0,-0.5) rectangle ({30*\dx},{10.1*\dy});
+
+\segment{0}{0}{2}
+\segment{2}{1}{3}
+\segment{3}{2}{5}
+\segment{5}{3}{7}
+\segment{7}{4}{11}
+\segment{11}{5}{13}
+\segment{13}{6}{17}
+\segment{17}{7}{19}
+\segment{19}{8}{23}
+\segment{23}{9}{29}
+\segment{29}{10}{31}
+\end{scope}
+
+\end{tikzpicture}
+\end{document}
+