Feat: fiche d'exercices sur la lecture de graphes

This commit is contained in:
Bertrand Benjamin 2021-09-14 13:49:27 +02:00
parent beadd8241f
commit f42a8e18ca
3 changed files with 28 additions and 9 deletions

View File

@ -1,12 +1,18 @@
\documentclass[a4paper,10pt]{article}
\usepackage{myXsim}
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\usepgfplotslibrary{external}
\tikzexternalize
\author{Benjamin Bertrand}
\title{Fonctions et graphiques - Cours}
\date{Septembre 2021}
\DeclareExerciseCollection[step=3]{banque}
\xsimsetup{collect}
\xsimsetup{collect, use-files}
\thispagestyle{empty}
\begin{document}

View File

@ -61,7 +61,7 @@
Le coût de fabrication et les recettes, en euros, de $x$ tonnes est modélisé par la fonction $C(x)$ et $R(x)$ représentées dans le graphique ci-dessous.
\noindent
\begin{minipage}{0.5\linewidth}
\begin{minipage}{0.55\linewidth}
\begin{enumerate}
\item \textbf{Recettes}
\begin{enumerate}
@ -80,13 +80,26 @@
\end{enumerate}
\end{enumerate}
\end{minipage}
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[xscale=0.5, yscale=0.4]
\tkzInit[xmin=0,xmax=80,xstep=5,
ymin=0,ymax=160000,ystep=10000]
\tkzGrid
\tkzAxeXY
%\tkzFct[domain=0:80,color=red,very thick]{\x**3-105*\x**2+3700*\x+4000};
\begin{minipage}{0.4\linewidth}
\begin{tikzpicture}
\begin{axis}[
axis lines = left,
y tick label style={/pgf/number format/.cd,%
scaled y ticks = false,
set thousands separator={$ $},
fixed},
grid= both,
xlabel = {En tonnes},
xtick distance=5,
ylabel = {En \euro},
ytick distance=10000,
every axis y label/.style={at={(current axis.north west)},above=2mm},
legend pos = north west,
legend entries={$C(x)$, $R(x)$}
]
\addplot[domain=0:80,samples=100, color=red, very thick]{x^3 - 105*x^2 + 3700*x + 4000 };
\addplot[domain=0:80,samples=3, color=blue, very thick]{1900*x} node [above] {$R(x)$};
\end{axis}
\end{tikzpicture}
\end{minipage}
\end{exercise}