83 lines
2.0 KiB
TeX
83 lines
2.0 KiB
TeX
\documentclass[a4paper,10pt]{article}
|
|
\usepackage{myXsim}
|
|
\usepackage{pgfplots}
|
|
\pgfplotsset{compat = newest}
|
|
\tikzexternalize
|
|
|
|
\author{Benjamin Bertrand}
|
|
\title{Fonctions tableaux - Cours}
|
|
\date{2023-01-10}
|
|
|
|
\pagestyle{empty}
|
|
|
|
\newcommand\cours{%
|
|
\section{Tableaux de signes}
|
|
|
|
Ce type de tableau représentera uniquement le \textbf{signe} de la fonction ainsi que les valeurs où elle est \textbf{nulle}.
|
|
|
|
\paragraph{Exemple}:
|
|
|
|
\begin{minipage}{0.5\linewidth}
|
|
\begin{tikzpicture}[scale=0.7]
|
|
% {0.1*(x+4)*(x+1)*(x-5)}
|
|
\begin{axis}[
|
|
axis lines = center,
|
|
%grid = both,
|
|
xlabel = {$x$},
|
|
xtick distance=1,
|
|
ylabel = {$y$},
|
|
ytick distance=2,
|
|
legend pos = north west,
|
|
legend entries={$f(x)$}
|
|
]
|
|
\addplot[domain=-6:6,samples=40, color=red, very thick]{0.1*(x+4)*(x+1)*(x-5)};
|
|
\end{axis}
|
|
\end{tikzpicture}
|
|
\end{minipage}
|
|
\begin{minipage}{0.5\linewidth}
|
|
Tableau de signe de la fonction $f$
|
|
|
|
\vspace{4cm}
|
|
|
|
\end{minipage}
|
|
|
|
\section{Tableaux de variations}
|
|
|
|
Ce type de tableau représentera uniquement les \textbf{variations} de la fonction.
|
|
|
|
\paragraph{Exemple}:
|
|
|
|
\begin{minipage}{0.5\linewidth}
|
|
\begin{tikzpicture}[scale=0.7]
|
|
% x sin(2x)
|
|
\begin{axis}[
|
|
axis lines = center,
|
|
%grid = both,
|
|
xlabel = {$x$},
|
|
xtick distance=1,
|
|
ylabel = {$y$},
|
|
ytick distance=1,
|
|
legend pos = north west,
|
|
]
|
|
\addplot[domain=-6:6,samples=40, color=red, very thick]{x*sin(deg(x))};
|
|
\end{axis}
|
|
\end{tikzpicture}
|
|
|
|
\end{minipage}
|
|
\begin{minipage}{0.5\linewidth}
|
|
Tableau de variations de la fonction $f$
|
|
|
|
\vspace{4cm}
|
|
\end{minipage}
|
|
|
|
}
|
|
|
|
\begin{document}
|
|
|
|
\cours
|
|
\setcounter{section}{0}
|
|
\vfill
|
|
\cours
|
|
|
|
\end{document}
|