aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/zeta/images/zetaplot.m
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@othello.ch>2022-08-09 08:27:08 +0200
committerAndreas Müller <andreas.mueller@othello.ch>2022-08-09 08:27:08 +0200
commit1a6b529c9f88bd92579714a43bfa2c9fa32e6a12 (patch)
tree446ca4ff6983e0eb98a4fdce1cf29d4d34090589 /buch/papers/zeta/images/zetaplot.m
parentVorschlag für Primzahlfunktion-Graph (diff)
downloadSeminarSpezielleFunktionen-1a6b529c9f88bd92579714a43bfa2c9fa32e6a12.tar.gz
SeminarSpezielleFunktionen-1a6b529c9f88bd92579714a43bfa2c9fa32e6a12.zip
add zetaplot
Diffstat (limited to 'buch/papers/zeta/images/zetaplot.m')
-rw-r--r--buch/papers/zeta/images/zetaplot.m23
1 files changed, 23 insertions, 0 deletions
diff --git a/buch/papers/zeta/images/zetaplot.m b/buch/papers/zeta/images/zetaplot.m
new file mode 100644
index 0000000..984b645
--- /dev/null
+++ b/buch/papers/zeta/images/zetaplot.m
@@ -0,0 +1,23 @@
+%
+% zetaplot.m
+%
+% (c) 2022 Prof Dr Andreas Müller
+%
+s = 1;
+h = 0.02;
+m = 40;
+
+fn = fopen("zetapath.tex", "w");
+fprintf(fn, "\\def\\zetapath{\n");
+counter = 0;
+for y = (0:h:m)
+ if (counter > 0)
+ fprintf(fn, "\n\t--");
+ end
+ z = zeta(0.5 + i*y);
+ fprintf(fn, " ({%.4f*\\dx},{%.4f*\\dy})", real(z), imag(z));
+ counter = counter + 1;
+end
+fprintf(fn, "\n}\n");
+fclose(fn);
+