1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
\input{preamble-standalone.ltx}
\begin{document}
% Ex. No. 60 (Section 14.1 : Variante intermédiaire : \TIKZ\ + \tkzname{tkz-fct})
\begin{tikzpicture}[scale=3]
\tkzInit[xmin=0,xmax=4,ymin=-1.5,ymax=1.5]
\tkzAxeY[label=$f(x)$]
\tkzDefPoint(1,0){x} \tkzDrawPoint[color=blue,size=0.6pt](x)
\shade[top color=gray!80,bottom color=gray!20] (1,0)%
plot[id=ln,domain=1:2.718] function{log(x)} |-(1,0);
\draw[color=blue] plot[id=ln,domain=0.2:4,samples=200]function{log(x)};
\tkzAxeX
\tkzText[draw,color= black,fill=brown!50](2,-1)%
{$\mathcal{A} = \int_1^{\text{e}}\ln(x)\text{d}x =%
\big[x\ln(x)\big]_{1}^{\text{e}} = \text{e}$}
\tkzText[draw,color= black,fill=brown!50](2,0.3){$\mathcal{A}$}
\end{tikzpicture}
\end{document}
|