01 September 2010
By admin
In Non classé
Ressources pour l’UE : Probabilités approfondies.
Les travaux dirigés :
Les examens :
Les partiels :
Continue reading
29 August 2010
By admin
In Mathématiques
Les Tds donnés à l’Université de Cergy-Pontoise
Continue reading
08 August 2010
By admin
In LaTeX
il existe un package LaTeX pour ceux qui souhaitent créer leurs propres circuits électriques : Package pst-circ
Continue reading
06 August 2010
By admin
In LaTeX
Voici un modèle de document LaTeX que j’utilise. Le code suivant appelle d’autres parties qui sont au-dessous :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| %------------------------------------------------%
\documentclass[11pt]{article}
%------------------------------------------------%
% Importer les packages communs
\input{inc/common.tex}
\input{inc/commandes.tex}
% Quel type de feuille?
\input{inc/geometry1.tex}
% Titre / Auteur / Date
\title{\huge{\textbf{Mathématiques}}}
\author{Analyse complexe}
\date{Mise à jour : \today}
% Créer l'index
\makeindex
% Entête & pied de page
\pagestyle{fancy}
\headheight = 15.0pt
\lhead{}
\chead{}
\rhead{\bfseries Mathématiques}
\lfoot{Mohammed Sayed}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
% Insérer l'entête
\maketitle
% Contenu de votre document
%------------------------------------------------%
Salaam les amis
%------------------------------------------------%
% Afficher l'index
% \printindex
% Sauter une page
\newpage
% Afficher le sommaire
\tableofcontents
% Liste des graphiques
% \listoffigures
\end{document}
%------------------------------------------------% |
Voici l’ensemble des packages qui me sont utiles :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| %% ------------------------------------------------ %%
%% Les packages généraux
%% ------------------------------------------------ %%
% Pour le français :: english, greek, etc.
\usepackage[francais]{babel}
% Gestion des accents pour les PDF
\usepackage[T1]{fontenc}
% Caractères additionnels (*)
% \usepackage{textcomp}
% Style :: txfonts, fourier, lmodern...
\usepackage{lmodern}
% \usepackage{kpfonts}
% \usepackage[utopia]{mathdesign}
% \usepackage[charter]{mathdesign}
%\usepackage[garamond]{mathdesign}
% Pour les mathématiques
\usepackage{amsmath,amssymb}
% Gestion des couleurs
\usepackage{xcolor}
% Gestion des hyperliens
\usepackage[colorlinks=true,
menucolor=red,
breaklinks=true,
urlcolor=blue,
linkcolor=magenta]{hyperref}
% Zoom par défaut
\hypersetup{pdfstartview=XYZ}
% Créer un index
\usepackage{makeidx}
% Pour les graphiques
\usepackage{graphicx}
\usepackage{subfigure}
% Entête et pied de page
\usepackage{fancyhdr}
% Style math partout
\everymath{\displaystyle}
% Plusieurs colonnes
\usepackage{multicol}
% Créer des frames
\usepackage{framed}
% Inclure des codes sources
\usepackage{listings}
% Mise en forme des théorèmes
\usepackage{theorem}
% Passer en mode portrait
\usepackage{lscape}
%% ------------------------------------------------ %% |
Et les commandes que j’utilise :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
| %% ------------------------------------------------ %%
%% Mes commandes pour les raccourcis en Maths
%% ------------------------------------------------ %%
% Mettre en gras
\newcommand{\mat}[1]{\textbf{#1}}
% Mettre en script
\newcommand{\mcal}[1]{\mathcal{#1}}
% Indicatrice d'un ensemble
\newcommand{\ind}[1]{\displaystyle{1\!\!1_{#1}}}
% Une probabilité
\newcommand{\proba}{\mathbb{P}}
% Ensembles mathématiques
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\K}{\mathbb{K}}
%% ------------------------------------------------ %%
%% Les théorèmes, propositions...
%% ------------------------------------------------ %%
% Les compteurs
\newcounter{exercice}
\newcounter{definition}
\newcounter{theoreme}
\newcounter{proposition}
\newcounter{corollaire}
\newcounter{lemme}
\newcounter{proprietes}
% L'environnement des definitions
\newenvironment{definition}[1][]
{\refstepcounter{definition}%
\def\FrameCommand{\colorbox{red!7}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{red}{
\textbf{Définition~\thedefinition\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement des exercices & solutions
\newenvironment{exercice}[1][]
{\refstepcounter{exercice}%
\def\FrameCommand{\colorbox{blue!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{blue}{
\textbf{Exercice~\theexercice\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
\newenvironment{solution}
{\def\FrameCommand{\colorbox{green!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{green!60!black}{
\textbf{Solution de l'exercice~\theexercice. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement des théorèmes
\newenvironment{theoreme}[1][]
{\refstepcounter{theoreme}%
\def\FrameCommand{\colorbox{magenta!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{magenta}{
\textbf{Théorème~\thetheoreme\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement des propositions
\newenvironment{proposition}[1][]
{\refstepcounter{proposition}%
\def\FrameCommand{\colorbox{orange!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{orange}{
\textbf{Proposition~\theproposition\ifx\\#1\\\else~(#1)\fi. ---}}
\ignorespaces
}{\endMakeFramed}
% L'environnement des propriétés
\newenvironment{proprietes}[1][]
{\refstepcounter{proprietes}%
\def\FrameCommand{\colorbox{olive!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{olive}{
\textbf{Propriétés~\theproprietes\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement des corollaires
\newenvironment{corollaire}[1][]
{\refstepcounter{corollaire}%
\def\FrameCommand{\colorbox{gray!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{gray}{
\textbf{Corollaire~\thecorollaire\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement des lemmes
\newenvironment{lemme}[1][]
{\refstepcounter{lemme}%
\def\FrameCommand{\colorbox{gray!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\textcolor{gray}{
\textbf{Lemme~\thelemme\ifx\\#1\\\else~(#1)\fi. --- }}
\ignorespaces
}{\endMakeFramed}
% L'environnement tresimportant
\newenvironment{tresimportant}
{\fboxsep=10pt %
\def\FrameCommand{\fcolorbox{red}{red!10}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\begingroup\color{red}\ignorespaces
}{\endgroup\endMakeFramed}
\newtheorem{notation}{Notation}[subsection]
\newtheorem{vocabulaire}{Vocabulaire}[subsection]
\newtheorem{remarque}{Remarque}[subsection]
%% ------------------------------------------------ %%
%% Mise en forme des codes sources
%% ------------------------------------------------ %%
% Définir les couleurs
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,0.5,1}
\definecolor{colString}{rgb}{0.6,0.1,0.1}
% Configuration de la mise en page
\lstset{%configuration de listings
float=hbp, %
basicstyle= \ttfamily\small, %
identifierstyle= \color{colIdentifier}, %
keywordstyle= \color{colKeys}, %
stringstyle= \color{colString}, %
commentstyle= \color{colComments}, %
columns=flexible, %
tabsize=2, %
frame=single, %
frameround=tttt, %
extendedchars=true, %
%showspaces=false, %
showstringspaces=false, %
numbers=left, %
numberstyle= \tiny, %
breaklines=true, %
breakautoindent=true, %
captionpos=b, %
%xrightmargin=0cm, %
xleftmargin=0cm
}
\lstset{language=c++}
%% ------------------------------------------------ %% |
Et enfin, les deux différents formats de papier que j’utilise :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| % Format 1 :
%% ------------------------------------------------ %%
%% Un autre format possible
%% ------------------------------------------------ %%
% Taille du papier
\usepackage[a5paper,
landscape,
twocolumn,
twoside,
left=0cm,
hmarginratio=2:1,
includemp,
marginparwidth=10pt,
bottom=0.5cm,
foot=0.7cm,
includefoot,
% textheight=11cm,
heightrounded,
columnsep=1cm,
dvips,
top=1.4cm,
verbose ]{geometry}
%% ------------------------------------------------ %%
%% ------------------------------------------------ %%
%% Un autre format possible
%% ------------------------------------------------ %%
% Taille du papier
\usepackage[left=1cm,
right=1.5cm,
bottom=1cm,
top=0.4cm,
foot=0.7cm]{geometry}
%% ------------------------------------------------ %% |
Continue reading
05 August 2010
By admin
In LaTeX
Bien définir une fonction :
1 2
| $f \colon X \to Y$
$f \colon x \mapsto x^2$ |
Le d de différentiabilité :
Une commande pour le produit scalaire :
1 2 3 4
| % Définir la nouvelle commande
\newcommand{\prodscal}[2]{\left\langle#1,#2\right\rangle}
% Exemple d'utilisation
$\prodscal{\vec{u}}{\vec{v}}$ |
Petit o et Grand O :
Continue reading
05 August 2010
By admin
In LaTeX
Si vous avez besoin un jour de de passer du format portrait au format paysage, vous aurez besoin certainement du package lscape. Voici une utilisation de base :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| \documentclass{article}
% ------------------------------------------- %
% Rajouter éventuellement english, greek, etc.
\usepackage[francais]{babel}
% Gestion des accents pour les PDF
\usepackage[T1]{fontenc}
% Format paysage
\usepackage{lscape}
% ------------------------------------------- %
\begin{document}
% Contenu de votre document
% Mettre cette page au format paysage
\begin{landscape}
C'est une page au format paysage, non?
\end{landscape}
\end{document} |
Continue reading
05 August 2010
By admin
In jQuery
Voici une façon très facile d’obtenir de sélectionner ou de dé-sélectionner les cases à cocher à l’aide de jQuery :
1 2 3 4 5 6
| //- Le formulaire
var form = $('#myForm');
//- Select all
form.find('input[type=checkbox]').attr('checked',true);
//- Select none
form.find('input[type=checkbox]').attr('checked',false); |
Continue reading
05 August 2010
By admin
In LaTeX
On a souvent besoin de personnaliser les entêtes et les pieds de page de nos documents créées en LaTeX. C’est pourquoi dans ce topic, je vais essayer de réunir quelques informations sur ce sujet :
Pour cela on a besoin d’utiliser le package fancyhdr, et voici une utilisation de base :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| \documentclass{article}
% --------------------------------------------- %
% Gestion de la lange française
\usepackage[francais]{babel}
% Gestion des accents pour les PDF
\usepackage[T1]{fontenc}
% Entête & Pied de page
\usepackage{fancyhdr}
%
\pagestyle{fancy}
% Remètre tout à zéro
\fancyhead{}
\fancyfoot{}
\rhead{\bfseries The performance of new graduates}
\lfoot{From: K. Grant}
\cfoot{To: Dean A. Smith}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% --------------------------------------------- %
\begin{document}
% Contenu de votre document
\end{document} |
Une image qui peut vous être utile pour l’utilisation du package fancyhdr :

Continue reading
04 August 2010
By admin
In LaTeX
Voici une méthode pour définir une fonction en morceau :
1 2 3 4 5 6 7
| \begin{equation*}
|x|=
\begin{cases}
-x & \text{si $x$ est impair} \\
x & \text{si $x$ est pair ou nul}
\end{cases}
\end{equation*} |
Continue reading
03 August 2010
By admin
In PHP / MySQL
Voici une fonction pour afficher la date au complet :
1 2
| //- Afficher la date actuelle
strftime("%A %d %B %Y | %H:%M:%S", time()); |
Parfois on peut avoir besoin de cette fonction pour mettre les premières lettres des mots en majuscule :
1 2
| //- Toutes les premières lettres en majuscule:
ucwords($string) |
Continue reading