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

% Ex. No. 35 (Section  9.1 : Somme de Riemann)

\begin{tikzpicture}[scale=3.5]
\tkzInit[xmax=3,ymax=1.75]
\tkzAxeXY
\tkzGrid(0,0)(3,2)
\tkzFct[color = red, domain =1/3:3]{0.125*(3*x-1)+0.375*(3*x-1)/(x*x)}
\tkzDrawRiemannSum[fill=green!40,opacity=.2,color=green,
                   line width=1pt,interval=1./2:exp(1),number=10]
\end{tikzpicture}

\end{document}