Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

04 Apr '14, 00:00

cis's gravatar image

cis
9.6k103460491

Falls Du an einer elementaren Methode interssiert interessiert bist: Mein Trick hier war es, die samples unvernünftig hocheintustellen hoch einzustellen (ohne das ging es nicht). ![alt text][1] \documentclass[margin=5mm,tikz]{standalone} \usepackage[ngerman]{babel} \usetikzlibrary{patterns} \usepackage{amsmath} %========= \begin{document} %========= \begin{tikzpicture}[y=2cm, x=0.5cm, scale=2.5] %----------------------------- % x-Achse \draw[->, >=latex] (-3.25,0) -- (7.75,0) node[below] {$x$}; %Zwischenmaßstab auf x-Achse \foreach \k in {-1,1,3} \draw[shift={(\k*pi/2,0)},color=black] (0pt,1pt) -- (0pt,-1pt); %node[below] {\footnotesize $\frac{\k \pi}{2} $}; %Zahlen auf x-Achse %+PI \draw[shift={(pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\pi$}; %-PI \draw[shift={(-pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $-\pi$}; %Weitere PI-Vielfache \foreach \k in {2} \draw[shift={(\k*pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\k \pi$}; %----------------------------- % y-Achse \draw[->, >=latex] (0,-0.4) -- (0,1.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-0.2,0.2,0.4,0.6,0.8,1.0,1.2} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; % Gitternetzlinien \draw[very thin, lightgray, xstep=pi/2, ystep=0.2] (-3.25,-0.35) grid (7.5,1.35); % ------------- %Funktion \draw[very thick,blue] plot[samples=200, domain=-pi-0.25pt:2*pi+0.55pt] (\x,{1/(2+sin(\x r))}) node[right] {\footnotesize $f(x) = \frac{1}{2 + \sin(x)}$}; %Schraffur \fill[red!80, postaction={pattern=north east lines}] plot[domain=0:2*pi, samples=500] (\x,{1/(2+sin(\x r))}) -- plot[domain=2*pi:0, samples=500] (\x,{0}); %Titel der Schraffur \draw[red] (4.5,0.3) -- (3.1,1.0) node[above=-5.5pt]{\footnotesize{$\int\limits_{0}^{2\pi} \frac{1}{2 + \sin(x)} dx$}}; \end{tikzpicture} %========= \end{document} %========= [1]: http://texwelt.de/wissen/upfiles/aaaaaaaaa-21t22_4ts__--2013-12-15_03.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

04 Apr '14, 00:00

cis's gravatar image

cis
9.6k103460491

Falls Du an einer elementaren Methode interssiert bist: Mein Trick hier war es, die samples unvernünftig hocheintustellen (ohne das ging es nicht). ![alt text][1] \documentclass[margin=5mm,tikz]{standalone} \usepackage[ngerman]{babel} \usetikzlibrary{patterns} \usepackage{amsmath} %========= \begin{document} %========= \begin{tikzpicture}[y=2cm, x=0.5cm, scale=2.5] %----------------------------- % x-Achse \draw[->, >=latex] (-3.25,0) -- (7.75,0) node[below] {$x$}; %Zwischenmaßstab auf x-Achse \foreach \k in {-1,1,3} \draw[shift={(\k*pi/2,0)},color=black] (0pt,1pt) -- (0pt,-1pt); %node[below] {\footnotesize $\frac{\k \pi}{2} $}; %Zahlen auf x-Achse %+PI \draw[shift={(pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\pi$}; %-PI \draw[shift={(-pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $-\pi$}; %Weitere PI-Vielfache \foreach \k in {2} \draw[shift={(\k*pi,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\k \pi$}; %----------------------------- % y-Achse \draw[->, >=latex] (0,-0.4) -- (0,1.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-0.2,0.2,0.4,0.6,0.8,1.0,1.2} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; % Gitternetzlinien \draw[very thin, lightgray, xstep=pi/2, ystep=0.2] (-3.25,-0.35) grid (7.5,1.35); % ------------- %Funktion \draw[very thick,blue] plot[samples=200, domain=-pi-0.25pt:2*pi+0.55pt] (\x,{1/(2+sin(\x r))}) node[right] {\footnotesize $f(x) = \frac{1}{2 + \sin(x)}$}; %Schraffur \fill[red!80, postaction={pattern=north east lines}] plot[domain=0:2*pi, samples=500] (\x,{1/(2+sin(\x r))}) -- plot[domain=2*pi:0, samples=500] (\x,{0}); %Titel der Schraffur \draw[red] (4.5,0.3) -- (3.1,1.0) node[above=-5.5pt]{\footnotesize{$\int\limits_{0}^{2\pi} \frac{1}{2 + \sin(x)} dx$}}; \end{tikzpicture} %========= \end{document} %========= [1]: http://texwelt.de/wissen/upfiles/aaaaaaaaa-21t22_4ts__--2013-12-15_03.png