aboutsummaryrefslogtreecommitdiffstats
path: root/buch/chapters/020-exponential/images/w.tex
blob: e1c9dc9e7f79aa32bbf5568622ed24270e70f512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
%
% tikztemplate.tex -- template for standalon tikz images
%
% (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{2}
\begin{tikzpicture}[>=latex,thick,scale=\skala]

\pgfmathparse{-exp(-1)}
\xdef\l{\pgfmathresult}

\draw[->] (-0.5,0) -- (3.5,0) coordinate[label={$x$}];
\draw[->] (0,{-1-0.1/\skala}) -- (0,1.5) coordinate[label={$y$}];
\node at (0,0) [below right] {$0$};

\begin{scope}
\clip (-0.4,-1) rectangle (3.4,1.5);
\draw[color=red,line width=2.0pt] plot[domain=-1:1.1] ({\x*exp(\x)},{\x});
\end{scope}

\node[color=red] at (1.5,1) {$y=W(x)=W_0(x)$};

\draw[line width=0.3pt] ({\l},0) -- ({\l},-1);
\draw ({\l},{-0.1/\skala}) -- ({\l},{0.1/\skala});
\node at ({\l},0) [above left] {$-1/e$};

\draw (1,{-0.1/\skala}) -- (1,{0.1/\skala});
\node at (1,0) [below] {$1$};
\draw (2,{-0.1/\skala}) -- (2,{0.1/\skala});
\node at (2,0) [below] {$2$};
\draw (3,{-0.1/\skala}) -- (3,{0.1/\skala});
\node at (3,0) [below] {$3$};
\draw ({-0.1/\skala},1) -- ({0.1/\skala},1);
\node at (0,1) [left] {$1$};

\begin{scope}[xshift=-2cm,yshift=1.5cm]
\draw[->] (-0.8,0) -- (0.5,0) coordinate[label={$x$}];
\draw[->] (0,-3) -- (0,0.4) coordinate[label={left:$y$}];;
\node at (0,0) [below right] {$0$};
\draw[line width=0.3pt] ({\l},0) -- ({\l},-1);
\draw ({\l},{-0.1/\skala}) -- ({\l},{0.1/\skala});
\draw[color=blue,line width=2.0pt] plot[domain=-3:-1] ({\x*exp(\x)},{\x});
\draw ({-0.1/\skala},-1) -- ({0.1/\skala},-1);
\draw ({-0.1/\skala},-2) -- ({0.1/\skala},-2);
\node at (0,-1) [right] {$-1$};
\node at (0,-2) [right] {$-2$};
\node[color=blue] at (-0.3,-2) [left] {$y=W_{-1}(x)$};
\node at ({\l},0) [above left] {$-1/e$};
\end{scope}

\end{tikzpicture}
\end{document}