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

12 Apr '14, 18:07

cis's gravatar image

cis
9.5k96460491

So, ich hab ja für sowas meine guten Vorlagen... ;) Auf Deine Frage, wie man sowas (nur) mit TikZ macht: ![alt text][1] \documentclass[margin=5mm, tikz]{standalone} \usepackage[ngerman]{babel} \usepackage{tikz} \usepackage{amsmath, amssymb} %=========== \begin{document} %=========== \begin{tikzpicture}[ x=1cm, y=1cm, scale=1.0, font=\footnotesize, >=latex %Voreinstellung für Pfeilspitzen ] % Gitternetzlinien \draw[xstep=1cm, ystep=0.5cm, very thin, color=lightgray] (-4,-3.5) grid (4,3.5); % x-Achse \draw[->] (-4.5,0) -- (4.5,0) node[below] {$x$}; %Zahlen auf x-Achse \foreach \x in {-4,...,4} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; % y-Achse \draw[->] (0,-3.5) -- (0,3.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-3,...,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; %%%%%%%%%%%%%%%% %% FUNKTIONEN %% %%%%%%%%%%%%%%%% % Kubisches Polynom \draw[thick,color=black, dashed] plot[samples=200, domain=3:-3] (\x,{0.1*(\x^3-\x^2+\x-1)}) node[below] {$f(x)=0.1\cdot(x^3-x^2+x-1)$}; % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{sqrt(0.1*(\x^3-\x^2+\x-1))}) node[above, xshift=-4em] {$g_+(x)=\sqrt{0.1\cdot(x^3-x^2+x-1)}$}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{-sqrt(0.1*(\x^3-\x^2+\x-1))}) node[below, xshift=-4em] {$g_-(x)=-\sqrt{0.1\cdot(x^3-x^2+x-1)}$}; \end{tikzpicture} %=========== \end{document} %=========== ============================================== **Zu Karras AW: Also Dein erstes Bild verstehe ich nicht, wenn ich einfach Deinen Funktionsterm eingebe, erhalte ich den 'Rechten Teil' richtig. Zu dem 2. Bild, wie gesagt: Du mußt streng darauf achten, daß Du Deine Wurzelfunktion nur für positive Argumente zeichnest - TikZ ist kein Zeichenprogramm, anders als Mathematica oder sowas, kommt es sonst nicht klar.** ![alt text][2] (Bild stimmt übr. nicht genau, ich hatte noch einen Forfaktor Vorfaktor vom 1. Plot drin) \documentclass[margin=5mm, tikz]{standalone} \usepackage[ngerman]{babel} \usepackage{tikz} \usepackage{amsmath, amssymb} %=========== \begin{document} %=========== \begin{tikzpicture}[ x=1cm, y=1cm, scale=1.0, font=\footnotesize, >=latex %Voreinstellung für Pfeilspitzen ] % Gitternetzlinien \draw[ help lines] (-3.5,-3.5) grid (3.5,3.5); % x-Achse \draw[->] (-4.5,0) -- (4.5,0) node[below] {$x$}; %Zahlen auf x-Achse \foreach \x in {-4,...,4} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; % y-Achse \draw[->] (0,-3.5) -- (0,3.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-3,...,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; %%%%%%%%%%%%%%%% %% FUNKTIONEN %% %%%%%%%%%%%%%%%% % Kubisches Polynom \draw[thick,color=black, dotted] plot[samples=200, domain=1.7:-1.7] (\x,{(\x^3-\x)}) node[below] {$f(x)=x^3-x$}; %Rechter Teil % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{sqrt(0.1*(\x^3-\x))}) node[above, xshift=-4em] {$g_+(x)=\sqrt{\cdot(x^3-x)}$}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red, dashed] plot[samples=200, domain=1:4] (\x,{-sqrt(0.1*(\x^3-\x))}) node[below, xshift=-4em] {$g_-(x)=-\sqrt{\cdot(x^3-x)}$}; %Linker Teil % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=0:-1] (\x,{sqrt(0.1*(\x^3-\x))}) node[] {}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red, dashed] plot[samples=200, domain=0:-1] (\x,{-sqrt(0.1*(\x^3-\x))}) node[] {}; \end{tikzpicture} %=========== \end{document} %=========== [1]: http://texwelt.de/wissen/upfiles/aaaaaaa-2122_4ts__--013-12-15_03.png [2]: http://texwelt.de/wissen/upfiles/aaaaaa-2122_4ts__--013-12-15_03.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 4

12 Apr '14, 18:07

cis's gravatar image

cis
9.5k96460491

So, ich hab ja für sowas meine guten Vorlagen... ;) Auf Deine Frage, wie man sowas (nur) mit TikZ macht: ![alt text][1] \documentclass[margin=5mm, tikz]{standalone} \usepackage[ngerman]{babel} \usepackage{tikz} \usepackage{amsmath, amssymb} %=========== \begin{document} %=========== \begin{tikzpicture}[ x=1cm, y=1cm, scale=1.0, font=\footnotesize, >=latex %Voreinstellung für Pfeilspitzen ] % Gitternetzlinien \draw[xstep=1cm, ystep=0.5cm, very thin, color=lightgray] (-4,-3.5) grid (4,3.5); % x-Achse \draw[->] (-4.5,0) -- (4.5,0) node[below] {$x$}; %Zahlen auf x-Achse \foreach \x in {-4,...,4} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; % y-Achse \draw[->] (0,-3.5) -- (0,3.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-3,...,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; %%%%%%%%%%%%%%%% %% FUNKTIONEN %% %%%%%%%%%%%%%%%% % Kubisches Polynom \draw[thick,color=black, dashed] plot[samples=200, domain=3:-3] (\x,{0.1*(\x^3-\x^2+\x-1)}) node[below] {$f(x)=0.1\cdot(x^3-x^2+x-1)$}; % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{sqrt(0.1*(\x^3-\x^2+\x-1))}) node[above, xshift=-4em] {$g_+(x)=\sqrt{0.1\cdot(x^3-x^2+x-1)}$}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{-sqrt(0.1*(\x^3-\x^2+\x-1))}) node[below, xshift=-4em] {$g_-(x)=-\sqrt{0.1\cdot(x^3-x^2+x-1)}$}; \end{tikzpicture} %=========== \end{document} %=========== ============================================== **Zu Karras AW: Also Dein erstes Bild verstehe ich nicht, wenn ich einfach Deinen Funktionsterm eingebe, erhalte ich den 'Rechten Teil' richtig. Zu dem 2. Bild, wie gesagt: Du mußt streng darauf achten, daß Du Deine Wurzelfunktion nur für positive Argumente zeichnest - TikZ ist kein Zeichenprogramm, anders als Mathematica oder sowas, kommt es sonst nicht klar.** ![alt text][2] (Bild stimmt übr. nicht genau, ich hatte noch einen Forfaktor vom 1. Plot drin) \documentclass[margin=5mm, tikz]{standalone} \usepackage[ngerman]{babel} \usepackage{tikz} \usepackage{amsmath, amssymb} %=========== \begin{document} %=========== \begin{tikzpicture}[ x=1cm, y=1cm, scale=1.0, font=\footnotesize, >=latex %Voreinstellung für Pfeilspitzen ] % Gitternetzlinien \draw[ help lines] (-3.5,-3.5) grid (3.5,3.5); % x-Achse \draw[->] (-4.5,0) -- (4.5,0) node[below] {$x$}; %Zahlen auf x-Achse \foreach \x in {-4,...,4} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; % y-Achse \draw[->] (0,-3.5) -- (0,3.5) node[left] {$y$};%node[above left] %Zahlen auf y-Achse \foreach \y in {-3,...,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; %Ursprung \draw[color=black] (0pt,-5pt) node[right] {\footnotesize $0$}; %%%%%%%%%%%%%%%% %% FUNKTIONEN %% %%%%%%%%%%%%%%%% % Kubisches Polynom \draw[thick,color=black, dotted] plot[samples=200, domain=1.7:-1.7] (\x,{(\x^3-\x)}) node[below] {$f(x)=x^3-x$}; %Rechter Teil % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=1:4] (\x,{sqrt(0.1*(\x^3-\x))}) node[above, xshift=-4em] {$g_+(x)=\sqrt{\cdot(x^3-x)}$}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red, dashed] plot[samples=200, domain=1:4] (\x,{-sqrt(0.1*(\x^3-\x))}) node[below, xshift=-4em] {$g_-(x)=-\sqrt{\cdot(x^3-x)}$}; %Linker Teil % Wurzel aus Kubischem Polynom - positiver Ast \draw[thick,color=red] plot[samples=200, domain=0:-1] (\x,{sqrt(0.1*(\x^3-\x))}) node[] {}; % Wurzel aus Kubischem Polynom - negativer Ast \draw[thick,color=red, dashed] plot[samples=200, domain=0:-1] (\x,{-sqrt(0.1*(\x^3-\x))}) node[] {}; \end{tikzpicture} %=========== \end{document} %=========== [1]: http://texwelt.de/wissen/upfiles/aaaaaaa-2122_4ts__--013-12-15_03.png [2]: http://texwelt.de/wissen/upfiles/aaaaaa-2122_4ts__--013-12-15_03.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3

12 Apr '14, 16:21

cis's gravatar image

cis
9.5k96460491

Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

12 Apr '14, 16:19

cis's gravatar image

cis
9.5k96460491

Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

12 Apr '14, 15:13

cis's gravatar image

cis
9.5k96460491

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×