From bd7879650e4f53524b2f1918951032294836705c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 9 Dec 2021 14:59:38 +0100 Subject: fix resolution of airy graphs --- .../050-differential/uebungsaufgaben/airy.cpp | 12 ++++++------ .../050-differential/uebungsaufgaben/airy.pdf | Bin 18891 -> 25568 bytes 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'buch/chapters/050-differential') diff --git a/buch/chapters/050-differential/uebungsaufgaben/airy.cpp b/buch/chapters/050-differential/uebungsaufgaben/airy.cpp index bbd5166..e4df8e1 100644 --- a/buch/chapters/050-differential/uebungsaufgaben/airy.cpp +++ b/buch/chapters/050-differential/uebungsaufgaben/airy.cpp @@ -77,7 +77,7 @@ int main(int argc, char *argv[]) { int longindex; double a = -8; double b = 2.5; - int steps = 200; + int steps = 500; while (EOF != (c = getopt_long(argc, argv, "a:b:do:s:", options, &longindex))) switch (c) { @@ -99,14 +99,14 @@ int main(int argc, char *argv[]) { } if (debug) - fprintf(stderr, "%s:%d: outfile: '%s'\n", - __FILE__, __LINE__, outfilename.c_str()); + fprintf(stderr, "%s:%d: outfile: '%s', a = %.4f, b = %.4f, steps = %d\n", + __FILE__, __LINE__, outfilename.c_str(), a, b, steps); FILE *outfile = fopen(outfilename.c_str(), "w"); - plot(outfile, "yonepath", f1, a, b, 100); - plot(outfile, "ytwopath", f2, a, b, 100); - plot(outfile, "ythreepath", f3, a, b, 100); + plot(outfile, "yonepath", f1, a, b, steps); + plot(outfile, "ytwopath", f2, a, b, steps); + plot(outfile, "ythreepath", f3, a, b, steps); fclose(outfile); diff --git a/buch/chapters/050-differential/uebungsaufgaben/airy.pdf b/buch/chapters/050-differential/uebungsaufgaben/airy.pdf index 6712fa0..672d789 100644 Binary files a/buch/chapters/050-differential/uebungsaufgaben/airy.pdf and b/buch/chapters/050-differential/uebungsaufgaben/airy.pdf differ -- cgit v1.2.1