summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex b/macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex
new file mode 100644
index 0000000000..07050e22a2
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-fct/examples/latex/tkzFct-08-4-0.tex
@@ -0,0 +1,20 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 29 (Section 8.4 : Surface et hachures)
+
+\begin{tikzpicture}[scale=2]
+ \tkzInit[xmin=-3,xmax=4,ymin=-2,ymax=4]
+ \tkzGrid(-3,-2)(4,4)
+ \tkzDrawXY
+ \tkzFct[domain = -2.15:3.2]{(2+\x)*exp(-\x)}
+ \tkzDrawArea[pattern=north west lines,domain =-2:2]
+ \tkzDrawTangentLine[draw,color=blue](0)
+ \tkzDrawTangentLine[draw,color=blue](-1)
+ \tkzDefPointByFct(2) \tkzGetPoint{C}
+ \tkzDefPoint(2,0){B}
+ \tkzDrawPoints(B,C) \tkzLabelPoints[above right](B,C)
+ \tkzRep
+\end{tikzpicture}
+
+\end{document}