%%%%%%%%%%%%% %%% Packages %%% %%%%%%%%%%%%%% %\usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{colortbl} \usepackage{mathrsfs,amsmath,amssymb,amsthm} \usepackage[all]{xy} \usepackage{environ} \usepackage{oubraces} \usepackage{alltt} \usepackage[utf8]{inputenc} %\usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{url} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \usetikzlibrary{decorations.markings} \usepackage{tkz-tab} \usepackage[colorlinks,linkcolor=blue]{hyperref} \usepackage[tikz]{bclogo} \usepackage{array} \usepackage{tabularx} \usepackage{fancyhdr} \usepackage{multicol} \usepackage{multirow} \usepackage{pstricks,pst-plot,pst-tree,pstricks-add} \usepackage{graphicx} \usepackage{cancel} \usepackage{listings} \usepackage{blkarray} \usepackage{pst-blur} \usepackage{stmaryrd} \usepackage{eso-pic} \usepackage{transparent} \usepackage{enumitem} \usepackage{subcaption} \usepackage{pgfplots, pgfplotstable} \usepackage{systeme} \tikzstyle directed=[postaction={decorate,decoration={markings, mark=at position .65 with {\arrow{latex}}}}] \definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{codegray}{rgb}{0.5,0.5,0.5} \definecolor{codepurple}{rgb}{0.58,0,0.82} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \lstdefinestyle{mypythonstyle}{ backgroundcolor=\color{black}, commentstyle=\itshape\color{ForestGreen}, keywordstyle=\color{Aquamarine}, numberstyle=\tiny\color{codegray}, stringstyle=\color{Thistle}, basicstyle=\ttfamily\footnotesize\color{white}, frame=single breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=true, numbers=left, numbersep=5pt, showspaces=false, showstringspaces=false, showtabs=false, tabsize=2, deletekeywords={range}, morekeywords={def, import, as, return, for, while, in, if, else, elif}, language=python } \lstdefinestyle{mysqlstyle}{ backgroundcolor=\color{black}, % frame=single, % framerule=0pt, commentstyle=\color{codegreen}, keywordstyle=\color{Magenta}, deletekeywords={INTEGER, DATE, TEXT}, numberstyle=\tiny\color{codegray}, stringstyle=\color{GreenYellow}, basicstyle=\footnotesize\ttfamily\color{white}, emph={INTEGER , DATE , TEXT, count, max, mean, avg}, emphstyle={\color{SkyBlue}}, breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=false, numbers=left, numbersep=10pt, showspaces=false, showstringspaces=false, showtabs=false, language=SQL } \lstset{style=mypythonstyle} %\lstset{style=mysqlstyle} \setcounter{tocdepth}{5} %%%%%%%%%%%%%%%%%%%%% %%% Marges et Style %%% %%%%%%%%%%%%%%%%%%%%% \usepackage[top=2cm,bottom=4cm,left=2cm,right=2cm]{geometry} \renewcommand{\FrenchLabelItem}{\textbullet} \renewcommand{\labelenumi}{% \textbf{\theenumi.}} \renewcommand{\labelenumii}{% \textbf{\theenumii.}} %%%%%%%%%%%%%% %%% Théorèmes %%% %%%%%%%%%%%%%%% \theoremstyle{definition} \newtheorem{thm}{Théorème}[subsection] \newtheorem{cor}{Corollaire}[thm] \newtheorem{lem}[thm]{Lemme} \newtheorem{prop}[thm]{Proposition} \theoremstyle{remark} \newtheorem{rmq}[thm]{Remarque} \newtheorem{defi}[thm]{Définition} \newtheorem{exemple}[thm]{Exemple} \newtheorem{exercice}[thm]{Exercice} \newtheorem{prob}[thm]{Problème} \newtheorem{methode}[thm]{Méthode} %%%%%%%%%%%%%%%%%%%%%% %%% Environnements %%% %%%%%%%%%%%%%%%%%%%%%% \newenvironment{demo}{\begin{quote}\parindent=0mm \footnotesize \textit{Démonstration}. }{\qed\end{quote}} \newenvironment{propenvi}[1]{ \begin{bclogo}[logo=\empty, ombre = true, arrondi=0.2, epOmbre = 0.25, couleurOmbre = black!30, couleur = BlueGreen!10,couleurBarre=BlueGreen!70]{Proposition : #1} } { \end{bclogo} \smallskip } \newenvironment{corenvi}[1]{ \begin{bclogo}[logo=\empty, ombre = true, arrondi=0.2, epOmbre = 0.25, couleurOmbre = black!30, couleur = BlueGreen!10,couleurBarre=BlueGreen!70]{Corollaire : #1} } { \end{bclogo} \smallskip } \newenvironment{defienvi}[1]{ \begin{bclogo}[logo=\empty, couleurBarre=Apricot!80, , arrondi=0.2, couleur = Apricot!10, ombre = true, epOmbre = 0.25, couleurOmbre = black!30]{Définition : #1} %\begin{defi} } { %\end{defi} \end{bclogo} \smallskip } \newenvironment{methodeenvi}[1]{ \begin{bclogo}[logo=\empty, couleurBarre=GreenYellow!70!black, arrondi=0.2, couleur = GreenYellow!10, ombre = true, epOmbre = 0.25, couleurOmbre = black!30]{Méthode~: #1} } { \end{bclogo} \smallskip } \newenvironment{thmenvi}[1]{ \begin{bclogo}[logo=\empty, ombre = true, arrondi =0.2, epOmbre = 0.25, couleurOmbre = black!30, couleur = BlueGreen!10,couleurBarre=BlueGreen!70]{Théorème : #1} } { \end{bclogo} \smallskip } \newenvironment{python}[1]{ \begin{bclogo}[logo=\empty, ombre = true, arrondi =0.2, epOmbre = 0.25, couleurOmbre = black!30, couleur = Salmon!10,couleurBarre=Salmon!10]{#1} } { \end{bclogo} \smallskip } % \NewEnviron{thmenvi}[1]{% % Define box and box title style % \tikzstyle{mybox} = [draw=black!50, very thick, rectangle, rounded % corners, inner sep=10pt, inner ysep=8pt] % % \tikzstyle{fancytitle} =[rounded corners, fill=BlueGreen, % text=black] % % \tikzstyle{fancylogo} =[ text=white] % \begin{center} % \begin{tikzpicture} % \node [mybox] (box){% % \begin{minipage}{0.9\linewidth} % \vspace{6pt} % %\begin{thm} % \BODY % %\end{thm} % \end{minipage} % }; % % \node[fancytitle, right=10pt] at (box.north west) % % {\bfseries\normalsize{Théorème : #1}}; % % \end{tikzpicture}% % \end{center} %} % \NewEnviron{methodeenvi}[1]{ % \tikzstyle{mybox} = [draw=black!50, very thick, rectangle, rounded % corners, inner sep=10pt, inner ysep=8pt] % \tikzstyle{fancytitle} =[rounded corners, fill=GreenYellow, % text=black] % \tikzstyle{fancylogo} =[ text=white] % \begin{center} % \begin{tikzpicture} % \node [mybox] (box){ % \begin{minipage}{0.9\linewidth} % \vspace{6pt} \BODY % \end{minipage} % }; % \node[fancytitle, right=10pt] at (box.north west) % {\bfseries\normalsize{Méthode : #1}}; % \end{tikzpicture} % % \end{center} %} %\NewEnviron{defienvi}[1]{% %\tikzstyle{mybox} = [draw=black!50, very thick, rectangle, rounded % corners, inner sep=10pt, inner ysep=8pt] % % \tikzstyle{fancytitle} =[rounded corners, fill=Apricot, % text=black] % % \tikzstyle{fancylogo} =[ text=white] % \begin{center} % \begin{tikzpicture} % \node [mybox] (box){% % \begin{minipage}{0.9\linewidth} % \vspace{6pt} \BODY % \end{minipage} % }; % % \node[fancytitle, right=10pt] at (box.north west) % % {\bfseries\normalsize{D\'efinition : #1}}; % % \end{tikzpicture}% % \end{center} %} % \NewEnviron{propenvi}[1]{% % Define box and box title style % \tikzstyle{mybox} = [draw=black!50, very thick, rectangle, rounded % corners, inner sep=10pt, inner ysep=8pt] % % \tikzstyle{fancytitle} =[rounded corners, fill=BlueGreen, % text=black] % % \tikzstyle{fancylogo} =[ text=white] % \begin{center} % \begin{tikzpicture} % \node [mybox] (box){% % \begin{minipage}{0.9\linewidth} % \vspace{6pt} % %\begin{thm} % \BODY % %\end{thm} % \end{minipage} % }; % % \node[fancytitle, right=10pt] at (box.north west) % % {\bfseries\normalsize{Proposition : #1}}; % % \end{tikzpicture}% % \end{center} %} % \NewEnviron{corenvi}[1]{% % Define box and box title style % \tikzstyle{mybox} = [draw=black!50, very thick, rectangle, rounded % corners, inner sep=10pt, inner ysep=8pt] % % \tikzstyle{fancytitle} =[rounded corners, fill=BlueGreen, % text=black] % % \tikzstyle{fancylogo} =[ text=white] % \begin{center} % \begin{tikzpicture} % \node [mybox] (box){% % \begin{minipage}{0.9\linewidth} % \vspace{6pt} %\begin{thm} % \BODY %\end{thm} % \end{minipage} % }; % % \node[fancytitle, right=10pt] at (box.north west) % % {\bfseries\normalsize{Corollaire : #1}}; % % \end{tikzpicture}% % \end{center} %} %%%%%%%%%%%%%%%%%%%%%%%% %%% Commandes diverses %%% %%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\fonction}[5]{\begin{array}{cccl} #1: & #2 & \longrightarrow & #3 \\ & #4 & \longmapsto & #5 \end{array}} \newcommand{\norm}[1]{\left\Vert#1\right\Vert} \newcommand{\abs}[1]{\left\vert#1\right\vert} \newcommand{\set}[1]{\left\{#1\right\}} \newcommand{\crochet}[1]{\left[#1\right]} %%%%%%%%%%%%%%%% %%% Lettrage %%% %%%%%%%%%%%%%%%% \newcommand{\A}{{\mathbb A}} \newcommand{\B}{{\mathbb B}} \newcommand{\C}{{\mathbb C}} \newcommand{\D}{{\mathbb D}} \newcommand{\F}{{\mathbb F}} \newcommand{\K}{{\mathbb K}} \newcommand{\I}{{\mathbb I}} \newcommand{\N}{{\mathbb N}} \newcommand{\Q}{{\mathbb Q}} \newcommand{\R}{\mathbb R} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Aac}{\mathcal A} \newcommand\Bbc{\mathcal B} \newcommand\Ccc{\mathcal C} \newcommand\Ddc{\mathcal D} \newcommand\Eec{\mathcal E} \newcommand\Ffc{\mathcal F} \newcommand\Ggc{\mathcal G} \newcommand\Hhc{\mathcal H} \newcommand\Llc{\mathcal L} \newcommand{\Mmc}{\mathcal M} \newcommand\Nnc{\mathcal N} \newcommand\Ppc{\mathcal P} \newcommand\Qqc{\mathcal Q} \newcommand\Ssc{\mathcal S} \newcommand\Uuc{\mathcal U} \newcommand{\cala}{\calligra{A}} \newcommand{\cald}{\calligra{D}} \newcommand{\calh}{\calligra{H}} \newcommand{\ind}{\mathds{1}} \newcommand{\aA}{\mathfrak{A}} \newcommand{\dD}{\mathfrak{D}} \newcommand{\mM}{\mathfrak{M}} \newcommand{\sS}{\mathfrak{S}} %%%%%%%%%%%%%% %%% Suites %%% %%%%%%%%%%%%%% \newcommand\an{(a_n)_{n\in\N}} \newcommand\bn{(b_n)_{n\in\N}} \newcommand\un{(u_n)_{n\in\N}} \newcommand\vn{(v_n)_{n\in\N}} \newcommand\wn{(w_n)_{n\in\N}} \newcommand\suite[3]{(#1_#2)_{#2\in #3}} %%%%%%%%%%%%%%% %%% Analyse %%% %%%%%%%%%%%%%%% \newcommand\dsim{\mathop{\sim}\limits} \newcommand{\petito}[2]{\mathop{\bf{o}}\limits_{#1}\left(#2\right)} \newcommand{\grandO}[1]{O\mathopen{}\left(#1\right)} \newcommand\dlim{\lim\limits} %% Met $n\to\infty$ en dessous. \newcommand\dsum{\sum\limits} %% Pareil \newcommand\dprod{\prod\limits} \newcommand\dint{\displaystyle\int} \newcommand\app[3]{#1\colon#2\to#3} \newcommand{\pa}{\partial} %%%%%%%%%%%%%%%%%%%%%%% %%% Algèbre linéaire %%% %%%%%%%%%%%%%%%%%%%%%%% \newcommand\vect{\mathrm{Vect}} \newcommand{\matdeux}[4]{\begin{pmatrix} #1\\#3\end{pmatrix}} \newcommand{\mattrois}[9]{\begin{pmatrix} #1\\#4\\#7 \end{pmatrix}} \newcommand{\matunn}[3]{\begin{pmatrix} #1\\#2\\ \vdots \\#3\end{pmatrix}} \newcommand{\matuntrois}[3]{\begin{pmatrix} #1\\#2\\#3\end{pmatrix}} \newcommand{\matunquatre}[4]{\begin{pmatrix} #1\\#2\\#3 \\#4\end{pmatrix}} \newcommand{\matundeux}[2]{\begin{pmatrix} #1\\#2\end{pmatrix}} \newcommand\mat{\mathrm{Mat}} \newcommand\rg{\textrm{rg}} \newcommand\im{\textrm{Im}} %\newcommand\ker{\textrm{Ker}} \newcommand\id{\textrm{Id}} \newcommand\spe{\mathrm{Sp}} %%%%%%%%%%%%%% %%% Probas %%% %%%%%%%%%%%%%% \newcommand\cov{\mathrm{Cov}} \newcommand\card{\textrm{Card}}