summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-10-6-0.tex
blob: 9430b809cb09a51fa5c3d28f0e66562cc35d0918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 43 (Section 10.6 : Asymptote horizontale)

\begin{tikzpicture}[scale=2.5]
  \tkzInit[xmax=5,ymin=0.5,ymax=1.5,ystep=0.5]
  \tkzGrid
  \tkzAxeXY
  \tkzFct[domain = 0:10]{x*exp(-x)+1}
  \tkzHLine[color=red,style=solid,line width=1.2pt]{1}
  \tkzDrawTangentLine[draw,color=blue](1)
  \tkzText[draw,fill = brown!20](2,0.75){$f(x)=x \text{e}^{-x}+1$}
\end{tikzpicture}

\end{document}