\documentclass[11pt,a4paper,svgnames,openany,utf8x,euler]{trmbookmaple}
\usepackage{etex}
\usepackage{preambuleTrm}
\usepackage{lcd}
\usepackage{bbm}
%\usepackage{macros_maths}


% \newcommand\R{\mathbb R}
% \newcommand\K{\mathbb K}
% \newcommand\C{\mathbb C}
% \newcommand\Z{\mathbb Z}
\newcommand\IM{\mathfrak{Im}}
%\newcommand{\ee}{{\rm e}}\newcommand{\ii}{{\rm i}}
\newcommand{\ent}[1]{\lfloor #1 \rfloor}
\newcommand{\itvo}[2]{\left] #1 ; #2 \right[}
\newcommand{\scal}[2]{\langle #1 | #2 \rangle}
\newcommand\cad{ i.e. }
\newcommand\equivalent{\Leftrightarrow}
\definecolor{bleutresclair}{rgb}{0.85, 0.85, 1}
\definecolor{dgreencolor}{rgb}{0,0.3,0}
\definecolor{dbluecolor}{rgb}{0,0,0.3}
\newcommand{\enstq}[2]{\left\{#1\,\middle|\,#2\right\}}
\newcommand{\intervalle}[4]{\mathopen{#1}#2 \mathclose{},#3 \mathclose{#4}}
\newcommand{\itvf}[2]{\intervalle{[}{#1}{#2}{]}}
\newcommand{\itvof}[2]{\intervalle{]}{#1}{#2}{]}}
\newcommand{\itvfo}[2]{\intervalle{[}{#1}{#2}{[}}
%\newcommand{\mcal}{\mathcal}

%\newcommand{\nuple}[1]{\left(#1_1,...,#1_n\right)}
\newcommand\scr{}
\newcommand\transposee{\vphantom{}^{\rm t}}

%\usepackage{concrete}

%\usepackage{bera}
%\usepackage[scaled=0.8]{beramono}
\usepackage{enumitem}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,fit,trees,positioning,shadows}
\usepackage{tkz-graph,tkz-berge}
%\usepackage{circuitikz}
%\usepackage{Karnaugh}
%\usepackage[autolanguage]{numprint}
\usepackage{caption}
\captionsetup{labelformat=empty,font=footnotesize}

\usepackage{cclicenses}
\usepackage{cclicence}

\newcolumntype{A}{>{\arraybackslash}X}

\usepackage{textcomp}
%\usepackage[off]{auto-pst-pdf}
\usepackage{mathtools,xlop,multido}

\hypersetup{
pdftitle={Poly Maple MP* - Mathématiques - Lycée Clemenceau}, % title
}


%alex
\newcommand\vc[1]{\mathbf{#1}}
\newcommand{\nuple}[1]{\left(#1_1,...,#1_n\right)}
\newcommand{\mcal}{\mathcal}


\usepackage{algo}

\renewcommand{\algocommentfont}{\small\ttfamily\itshape}

\renewcommand{\algotextfont}{\small\ttfamily\upshape}



\setcounter{tocdepth}{2}


\entem{\leftmark }{\leftmark }{\href{http://informathix.tuxfamily.org/}{Licence
    Creative Commons}\byncsa}%g,d,b




\title{Une dosette de MAPLE en MP\up{$ \star$}
}

\author{ Guillaume \textsc{Connan}}

\date{Lycée Clemenceau - MP\up{$ \star$} 2013-2014 }



\newcommand\soustitre{
  Licence Creative Commons

\CcGroupByNcSa{1.25}{1.25ex}

Version du \today{} %à \now

}


%\coverillustration{\includegraphics[width=9cm]{informathix}}

\coverillustration{\includegraphics[width=8.5cm]{erable}}


\newcommand{\Sage}{\textsf{Sage}\xspace}
\newcommand{\Python}{\textsf{Python}\xspace}
\newcommand{\Caml}{\textsf{CAML}\xspace}
\newcommand{\Maple}{\textsf{Maple}\xspace}



\renewcommand{\vect}{\ve}

\renewcommand\vc[1]{\mathbf{#1}}

\newcommand\maple{
\lstset{
 language=Maple,
        escapeinside={(*@}{@*)},
        %numbers=left,
        commentstyle={\small\sffamily\color{gray}},
        keywordstyle={\small\ttfamily\color{black!30!red}\bfseries},
        stringstyle={\small\ttfamily\color{gray}\itshape},
        basicstyle={\small\ttfamily\color{black!30!red}},
        breaklines=true,
        breakatwhitespace=true,
        showtabs=False,
        showspaces=False,
        showstringspaces=False,
        extendedchars=true,
        emph=[2]{In},
        emphstyle=[2]\color{black!70},
        morecomment=[l][\color{blue}]{Out},
        %aboveskip=1em,
        %belowskip=1em,
        rulecolor=\color{gray},
        %rulesepcolor=\color{gray},
        %frame=trBL,
        frame=single,
        frameround=tttt,
        framerule=0.3pt,
        framesep=4pt,
        belowcaptionskip=2.1pt,
title={{\setlength{\fboxsep}{1pt}\fcolorbox{gray}{gray!10}{\sffamily\scriptsize
      \textcolor{gray!10}{\_}Maple \textcolor{gray!10}{\_}}}}}
}



\newcommand\haskell{
\lstset{
 language=haskell,
        escapeinside={(*@}{@*)},
        %numbers=left,
        basicstyle={\small\ttfamily},
        commentstyle={\small\itshape\color{pink!60!black}},
        keywordstyle={\ttfamily\bfseries\fontfamily{ul9}\selectfont\color{black!60!blue}},
        stringstyle={\small\ttfamily\color{gray!50!black}\itshape},
        breaklines=true,
        breakatwhitespace=true,
        showtabs=False,
        showspaces=False,
        showstringspaces=False,
        extendedchars=true,
        %aboveskip=1em,
        %belowskip=1em,
        rulecolor=\color{gray},
        %rulesepcolor=\color{gray},
        %frame=trBL,
        frame=single,
        frameround=tttt,
        framerule=0.3pt,
        framesep=4pt,
        belowcaptionskip=2.1pt,
title={{\setlength{\fboxsep}{1pt}\fcolorbox{gray}{gray!10}{\sffamily\scriptsize
      \textcolor{gray!10}{\_}Haskell \textcolor{gray!10}{\_}}}}}
}



% \newcommand\maple{\lstset{numbers=none,language=Maple,xleftmargin=10pt,%
% keywordstyle=\color{red!50!black}\usefont{OT1}{cmtt}{b}{n},basicstyle=\ttfamily\color{red!90!black},commentstyle=\normalfont\small\itshape,breaklines=true,frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,backgroundcolor=\color{yellow!10!white},showstringspaces=false,stringstyle=\slshape,captionpos=b}}% ,index=[2][keywords],indexstyle=[2]\indexkeywordsmaple} 


\newcommand\Pasc{\lstset{numbers=none,language=Pascal,xleftmargin=10pt,%
keywordstyle =\color{bleu}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{green!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b}
}



\newcommand\pasc{\lstset{numbers=none,language=Pascal,xleftmargin=10pt,%
keywordstyle =\color{bleu}\bfseries\footnotesize,basicstyle=\ttfamily\color{0.1white}\footnotesize,commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{green!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape\footnotesize,captionpos=b}
}








\newcommand\caml{\lstset{numbers=none,language=Caml,xleftmargin=10pt,%
keywordstyle =\color{blue!70!black}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{blue!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b}
}



\newcommand\sage{\lstset{numbers=none,language=sage,xleftmargin=10pt,%
keywordstyle =\color{blue!70!black}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{orange!20},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b,emph={sage},emphstyle=\color{blue!60!black}\bfseries\large,mathescape=true% ,delim=**[l][\ttfamily\color{0.1white}]sage:
,moredelim=[il][\slshape\color{black!30}]§}
}



\newcommand\scilab{\lstset{numbers=none,language=scilab,xleftmargin=10pt,%
keywordstyle =\color{bleu}\bfseries,basicstyle=\ttfamily\color{0.1white},commentstyle=\normalfont\scriptsize\slshape,breaklines=true,backgroundcolor=\color{white},frame=trBL,framerule=1pt,framesep=4pt,rulesep=1pt,showstringspaces=false,stringstyle=\slshape,captionpos=b}
}



\graphicspath{{/home/moi/Lycee/TDmaple/2006_7/}{/home/moi/Figures/Arbres_Graphes/}{/home/moi/Figures/FigSTI/}{/home/moi/Figures/FigMaple/}{/home/moi/Photos/Maths/}{/home/moi/Photos/Tehessin/}{/home/moi/Figures/FigSTI/}{/home/moi/Figures/FigSeconde/}{/home/moi/Lycee/Informatique/XCAS/2008_9/}{/home/moi/Lycee/TDmaple/2008_9/}{/home/moi/IUT/Thierry/Conversions/}{/home/moi/Photos/informathix/}{/home/moi/Alice/2009/bcpst/CHAP0/}}


\fvset{%
fontfamily=courier,fontseries=b,formatcom=\color{red!50!black}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\headheight}{23pt}


%\renewcommand\chaptername{TP}

\renewcommand\verb{\Verb}



\newcommand{\func}{\mathbf}

\pagecolor{white}
\color{black}
\usepackage{pdfpages}

\addto\captionsfrench{\def\contentsname{Sommaire}}

\newcommand{\mpl}{\textsf{Maple} }

\begin{document}


\maple

\thispagestyle{empty}
\maketitle

\tableofcontents
%\include{programaple}
\renewcommand\chaptername{TP \No}
% \include{x2012}
% \include{scilab_mpstar}
% \include{interpol_mpstar}
% \include{deriv_mpstar}
%\include{euler_mpstar}
%\include{lena_mpstar}
%\setcounter{chapter}{1}
\include{X2013}
\include{tortue_13}
\include{ellipticmaple}
%\include{system_dyn_mpstar}
%%% biblio et fin

%\nocite{*}
%\bibliography{PolyInfo10}

%\printindex
\end{document}

%%% Local Variables: 
%%% TeX-master: t
%%% End: 
