| 1 |
\section{Sommes de Riemann} |
| 2 |
\hypertarget{tdrs}{} |
| 3 |
|
| 4 |
\begin{NewMacroBox}{tkzDrawRiemannSum}{\oarg{local options}\marg{$f(t)$}} |
| 5 |
Cette macro permet de représenter les rectangles intervenant dans une somme de Riemann. Les options sont celles de \TIKZ, plus |
| 6 |
|
| 7 |
\begin{tabular}{lll} |
| 8 |
\toprule |
| 9 |
options & défaut & définition \\ |
| 10 |
\midrule |
| 11 |
\TOline{iterval}{1:2}{l'intervalle sur lequel est appliqué la méthode} |
| 12 |
\TOline{number}{10}{nombre de sous-intervalles utilisés} |
| 13 |
\bottomrule |
| 14 |
\end{tabular} |
| 15 |
|
| 16 |
Possible est de réunir les quatres macros et de choisir la méthode avec une option. |
| 17 |
\end{NewMacroBox} |
| 18 |
|
| 19 |
\subsection{Somme de Riemann} |
| 20 |
|
| 21 |
\begin{tkzexample}[vbox] |
| 22 |
\begin{tikzpicture}[scale=3.5] |
| 23 |
\tkzInit[xmax=3,ymax=1.75] |
| 24 |
\tkzAxeXY |
| 25 |
\tkzGrid(0,0)(3,2) |
| 26 |
\tkzFct[color = red, domain =1/3:3]{0.125*(3*x-1)+0.375*(3*x-1)/(x*x)} |
| 27 |
\tkzDrawRiemannSum[fill=green!40,opacity=.2,color=green, |
| 28 |
line width=1pt,interval=1./2:exp(1),number=10] |
| 29 |
\end{tikzpicture} |
| 30 |
\end{tkzexample} |
| 31 |
|
| 32 |
\newpage |
| 33 |
\hypertarget{tdrsi}{} |
| 34 |
|
| 35 |
\begin{NewMacroBox}{tkzDrawRiemannSumInf}{\oarg{local options}} |
| 36 |
C'est une variante de la macro précédente mais les rectangles sont toujours sous la courbe. |
| 37 |
\end{NewMacroBox} |
| 38 |
|
| 39 |
\subsection{Somme de Riemann Inf} |
| 40 |
|
| 41 |
\begin{tkzexample}[vbox] |
| 42 |
\begin{tikzpicture}[scale=1.75] |
| 43 |
\tkzInit[xmin=-3,xmax=6,ymin=-2,ymax=14,ystep=2] |
| 44 |
\tkzDrawX \tkzDrawY |
| 45 |
\tkzFct[line width=2pt,color = red, domain =-3:6]{(-\x-2)*(\x-5)} |
| 46 |
\tkzDrawRiemannSumInf[fill=green!40,opacity=.5,interval=-1:5,number=10] |
| 47 |
\end{tikzpicture} |
| 48 |
\end{tkzexample} |
| 49 |
|
| 50 |
\newpage |
| 51 |
\hypertarget{tdrss}{} |
| 52 |
\begin{NewMacroBox}{tkzDrawRiemannSumSup}{\oarg{local options}} |
| 53 |
C'est une variante de la macro précédente mais les rectangles sont toujours au-dessus de la courbe. |
| 54 |
\end{NewMacroBox} |
| 55 |
|
| 56 |
\subsection{Somme de Riemann Inf et Sup} |
| 57 |
\begin{tkzexample}[vbox] |
| 58 |
\begin{tikzpicture}[scale=1.75] |
| 59 |
\tkzInit[xmin=-3,xmax=6,ymin=-2,ymax=14,ystep=2] |
| 60 |
\tkzDrawX \tkzDrawY |
| 61 |
\tkzFct[line width=2pt,color = red, domain =-3:6]{(-\x-2)*(\x-5)} |
| 62 |
\tkzDrawRiemannSumSup[fill=blue!40,opacity=.5,interval=-1:5,number=10] |
| 63 |
\tkzDrawRiemannSumInf[fill=green!40,opacity=.5,interval=-1:5,number=10] |
| 64 |
\end{tikzpicture} |
| 65 |
\end{tkzexample} |
| 66 |
|
| 67 |
|
| 68 |
\newpage |
| 69 |
\hypertarget{tdrsm}{} |
| 70 |
\begin{NewMacroBox}{tkzDrawRiemannSumMid}{\oarg{local options}} |
| 71 |
C'est une variante de la macro précédente mais les rectangles sont à cheval sur la courbe. |
| 72 |
\end{NewMacroBox} |
| 73 |
|
| 74 |
\subsection{Somme de Riemann Mid} |
| 75 |
|
| 76 |
\begin{tkzexample}[vbox] |
| 77 |
\begin{tikzpicture}[scale=1.75] |
| 78 |
\tkzInit[xmin=-3,xmax=6,ymin=-2,ymax=14,ystep=2] |
| 79 |
\tkzDrawX \tkzDrawY |
| 80 |
\tkzFct[line width=2pt,color = red, domain =-3:6]{(-\x-2)*(\x-5)} |
| 81 |
\tkzDrawRiemannSumMid[fill=blue!40,opacity=.5,interval=-1:5,number=10] |
| 82 |
\end{tikzpicture} |
| 83 |
\end{tkzexample} |
| 84 |
|
| 85 |
\endinput |