⚡ Compilation LaTeX (Bac)

Fichier tex utilisé : 📄 graphiques/25matj2me3-exo3.tex

↩ Retour 💾 Télécharger le fichier original 📦 Sur la Forge

% !TeX TXS-program:compile = txs:///pdflatex

\documentclass[margin=5mm]{standalone}
\usepackage{tkz-grapheur}

\begin{document}

\begin{GraphiqueTikz}[x=0.9cm,y=0.9cm,Xmin=0,Xmax=8.3,Xgrille=1,Xgrilles=0.2,Ymin=0,Ymax=9.8,Ygrille=1,Ygrilles=0.2]
	\TracerAxesGrilles[Police=\footnotesize]{1,...,8}{1,...,9}
	\DefinirCourbe[Debut=2,Fin=8]{10*ln(-x^2+7*x+9)/x}
	\TracerCourbe[Couleur=red,Debut=2,Fin=8]{f(x)}
	%rectangle
	\draw[very thick,fill=orange,fill opacity=0.125] (6.8,0) rectangle++(-0.4,0.4) ;
	\draw[very thick,fill=orange,fill opacity=0.125] (0,{\xintfloateval{f(6.8)}}) rectangle++(0.4,-0.4) ;
	\draw[very thick,fill=blue,fill opacity=0.125] (0,0) rectangle (6.8,{\xintfloateval{f(6.8)}}) ;
	%labels
	\MarquerPts[Couleur=black]{(6.8,{\xintfloateval{f(6.8)}})/M/above right}
	\PlacerTexte[Couleur=red,Police=\large]{(4.25,8.25)}{$C_f$}
	\PlacerTexte[Couleur=blue,Position=left]{(0,{\xintfloateval{f(6.8)}})}{$P$}
	\PlacerTexte[Couleur=blue,Position=below left]{(6.8,0)}{$N$}
	\PlacerTexte[Couleur=blue,Position=below left]{(0,0)}{$O$}
	\draw[very thick,->,>=latex] (0,0)--++(1,0) node[midway,below,font=\footnotesize] {$\vec{\imath}$} ;
	\draw[very thick,->,>=latex] (0,0)--++(0,1) node[midway,left,font=\footnotesize] {$\vec{\jmath}$} ;
\end{GraphiqueTikz}

\end{document}