%
% A .tex fájl részleteként működő kód. Szükséges hozzá a \usepackage{tikz} csomag
% betöltése. A gnuplot programmal, az alábbi parancsokkal
%
% set terminal table; set output "myfile.cosh1.table"; set format "%.5f"
% set samples 25; plot [x=-3:0] (exp(-x)+exp(x))/2
%
% set terminal table; set output "myfile.cosh2.table"; set format "%.5f"
% set samples 25; plot [x=0:1] (exp(-x)+exp(x))/2
%
% set terminal table; set output "myfile.cosh3.table"; set format "%.5f"
% set samples 25; plot [x=1:3] (exp(-x)+exp(x))/2
%
% először el kell készítenünk a megfelelő .table adatfáljokat.
%
\begin{tikzpicture}[domain=-3:3]
\draw[->] (-3.2,0) -- (3.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$y$};
\draw plot[id=cosh1] function{(exp(-x)+exp(x))/2} node[right] {};
\draw[color=red] plot[id=cosh2] function{(exp(-x)+exp(x))/2} node[right] {};
\draw plot[id=cosh3] function{(exp(-x)+exp(x))/2} node[right] {};
\draw[->] (1,1.543) -- (1.7,2.4);
\draw[->,color=green] (0,1) -- (-0.7,1);
\draw (1.5,1.543) arc (0:50:0.5);
\draw[-,dashed,color=green] (1,1.543) -- (1.7,1.543);
\draw[-,dashed,color=blue] (1.7,1.543) -- (1.7,2.4);
\draw[->,color=blue] (0.333,1.056) -- (0.333,0.199);
\draw[] (-0.2,1) node[below=1pt] {$C$} ;
\draw[] (1,1.543) node[above=1pt] {$D$} ;
\draw[] (-2,3.762) node[above=1pt] {$A$} ;
\draw[] (2,3.762) node[above=1pt] {$B$} ;
\draw[] (0.333,1) node[above=1pt] {$S$} ;
\draw[] (-0.7,1) node[left=1pt] {$\mathbf{F}_{\!C}$} ;
\draw[] (1.7,2.4) node[right=1pt] {$\mathbf{F}_{\!D}$} ;
\draw[] (0.3,0.3) node[right=1pt] {$\mathbf{G}_{\!S}$} ;
\draw[] (1.33,1.7) node {$\alpha$} ;
\draw[-,dashed] (-0.05,1.543) -- (1,1.543);
\draw[-,dashed] (1,-0.05) -- (1,1.543);
\draw[] (0,1.543) node[left=1pt] {$y$} ;
\draw[] (1,0) node[below=1pt] {$x$} ;
%
\draw [color=red] (0.333,1.056) circle (1pt);
\filldraw [white] (0.333,1.056) circle (0.5pt);
\draw (-2,3.762) circle (1pt);
\filldraw [white] (-2,3.762) circle (0.5pt);
\draw (2,3.762) circle (1pt);
\filldraw [white](2,3.762) circle (0.5pt);
\draw (0,1) circle (1pt);
\draw (1,1.543) circle (1pt);
\filldraw [white] (0,1) circle (0.5pt);
\filldraw [white] (1,1.543) circle (0.5pt);
\end{tikzpicture}