\documentclass[a5paper,10pt]{article} \usepackage{myXsim} \title{Tracer un graphique} \tribe{Troisième} \date{Mai 2018} \pagestyle{empty} \geometry{left=10mm,right=10mm, top=10mm} \begin{document} \begin{exercise}[subtitle={Tracer un graphique}] Tracer les graphiques de 3 fonctions $f$, $g$ et $h$ dont on a calculé les valeurs dans le tableau. \vfill \begin{center} % f:x-> -0,4x % g:x-> 0,4x - 2 % h:x-> sin(x*pi/2)*4 \begin{tabular}{|l|rrrrrrrrrrr|} \toprule x & -5 & -4 & -3 & -2 & -1 & 0 & 1 & 2 & 3 & 4 & 5 \\ \midrule f(x) & 2 & 1,6 & 1,2 & 0,8 & & 0 & -0,4 & & -1,2 & -1,6 & \\ g(x) & & -3,6 & -3,2 & & -2,4 & -2 & -1,6 & & -0,8 & & 0 \\ h(x) & -4 & 0 & 4 & 0 & -4 & 0 & 4 & 0 & -4 & 0 & 4 \\ \bottomrule \end{tabular} \vfill \begin{tikzpicture} \tkzInit[xmin=-5,xmax=5,xstep=1,ymax=5,ymin=-5,ystep=1] \tkzAxeX[right] \tkzAxeY[above] \tkzGrid[sub] \end{tikzpicture} \end{center} \end{exercise} \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: "master" %%% End: