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

% Ex. No. 37 (Section  9.3 : Somme de Riemann Inf et Sup)

\begin{tikzpicture}[scale=1.75]
  \tkzInit[xmin=-3,xmax=6,ymin=-2,ymax=14,ystep=2]
  \tkzDrawX \tkzDrawY
  \tkzFct[line width=2pt,color = red, domain =-3:6]{(-\x-2)*(\x-5)}
  \tkzDrawRiemannSumSup[fill=blue!40,opacity=.5,interval=-1:5,number=10]
  \tkzDrawRiemannSumInf[fill=green!40,opacity=.5,interval=-1:5,number=10]
\end{tikzpicture}

\end{document}