From 02b31342e0dba3703c1a3a91352f7ae19764d7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 29 Nov 2021 13:18:22 +0100 Subject: gauss quadratur zeugs --- buch/chapters/060-integral/gq/gq.tex | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 buch/chapters/060-integral/gq/gq.tex (limited to 'buch/chapters/060-integral/gq/gq.tex') diff --git a/buch/chapters/060-integral/gq/gq.tex b/buch/chapters/060-integral/gq/gq.tex new file mode 100644 index 0000000..e5a9c4d --- /dev/null +++ b/buch/chapters/060-integral/gq/gq.tex @@ -0,0 +1,57 @@ +% +% gq.tex -- Fehler +% +% (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} +\def\dx{12} +\def\dy{8} +\input{gqpaths.tex} +\begin{tikzpicture}[>=latex,thick,scale=\skala] + +\begin{scope} +\clip (0,0) rectangle ({\dx*1},{\dy*1}); +\draw[color=red,line width=1.4pt] \two; +\draw[color=red,line width=1.4pt] \four; +\draw[color=red,line width=1.4pt] \six; +\draw[color=red,line width=1.4pt] \eight; +\draw[color=red,line width=1.4pt] \ten; +\draw[color=red,line width=1.4pt] \twelve; +\draw[color=red,line width=1.4pt] \fourteen; +\draw[color=red,line width=1.4pt] \sixteen; +\end{scope} + +% add image content here +\draw[->] (0,-0.1) -- (0,{\dy+0.5}) coordinate[label={right:$e$}]; +\draw[->] (-0.1,0) -- ({\dx+0.5},0) coordinate[label={$a$}]; + +\draw ({\dx},-0.1) -- ({\dx},0.1); +\draw[line width=0.3pt] ({\dx},0) -- ({\dx},{\dy}); +\node at ({\dx},0) [below] {$1$}; +\node at (0,0) [below] {$0$}; + +\draw (-0.1,\dy) -- (0.1,\dy); +\node at (0,\dy) [left] {$10^{-6}$}; + +\node at ({0.227*\dx},{0.7*\dy}) [rotate=83.5] {$n=2$}; +\node at ({0.678*\dx},{0.7*\dy}) [rotate=83] {$n=4$}; +\node at ({0.850*\dx},{0.7*\dy}) [rotate=84] {$n=6$}; +\node at ({0.915*\dx},{0.7*\dy}) [rotate=85] {$n=8$}; +\node at ({1.015*\dx},{0.7*\dy}) [rotate=90] {$n=16$}; + +\foreach \x in {0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9}{ + \draw ({\x*\dx},-0.1) -- ({\x*\dx},0.1); + \node at ({\x*\dx},0) [below] {$\x$}; +} + +\end{tikzpicture} +\end{document} + -- cgit v1.2.1