Les Maths Libres
Accueil du site > Professor.sty > 2) Les paquets > Le paquet pro-probas

Le paquet pro-probas

dimanche 3 août 2008

Cet outil a pour but de faciliter la rédaction de documents sur les probabilités.

A lire


- L’installation.
- Des conseils d’utilisation.
- Des problèmes ?

Dans le préambule


On rajoute ceci :

\usepackage[xcas]{pro-probas}

Fichier de test


Le fichier suivant est encodé en utf-8 et est prévu pour une compilation avec pdflatex. L’entête vous permettra de facilement changer l’encodage ou le type de sortie voulue (pdf pour pdflatex ou ps pour latex).

LaTeX - 3.2 ko
probas.tex

pro-arbre22


Cet environnement sert à construire un arbre 2x2.

\begin{pro-arbre22}{1}
 ["G",1/5,"F"],
 ["H",1/2,1/3],
 [                 // ----------------- debut des options
 ["titre-gauche","Arbre de probabilité 2x2"]
 ]                // ----------------- fin des options
\end{pro-arbre22}

On obtient :

JPEG - 10.5 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_arbre22- i.mp, la valeur i étant donnée en argument.

pro-ana22


Cet environnement sert à analyser un arbre 2x2.

\begin{pro-ana22}{1}
 ["G",1/5,"F"],
 ["H",1/2,1/3]
\end{pro-ana22}

On obtient :

JPEG - 37.1 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_ana22-i.tex, la valeur i étant donnée en argument.

pro-arbre32


Cet environnement sert à construire un arbre 3x2.

\begin{pro-arbre32}{1}
 ["A",1/5,"B",1/3,"C"],
 ["H",1/2,1/4,1/5],
 [                 // ----------------- debut des options
 ["titre-gauche","Arbre de probabilité 3x2"]
 ]                // ----------------- fin des options
\end{pro-arbre32}

On obtient :

JPEG - 14.4 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_arbre32- i.mp, la valeur i étant donnée en argument.

pro-ana32


Cet environnement sert à analyser un arbre 3x2.

\begin{pro-ana32}{1}
 ["A",1/5,"B",1/3,"C"],
 ["H",1/2,1/4,1/5]
\end{pro-ana32}

On obtient :

JPEG - 49.1 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_ana32-i.tex , la valeur i étant donnée en argument.

pro-arbre23


Cet environnement sert à construire un arbre 2x3.

\begin{pro-arbre23}{1}
 ["G",1/5,"F"],
 ["A",1/5,1/2,"B",1/3,1/3,"C"],
 [                 // ----------------- debut des options
 ["titre-gauche","Arbre de probabilité 2x3"]
 ]                // ----------------- fin des options
\end{pro-arbre23}

On obtient :

JPEG - 13.3 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_arbre23- i.mp , la valeur i étant donnée en argument.

pro-ana23


Cet environnement sert à analyser un arbre 2x3.

\begin{pro-ana23}{1}
 ["G",1/5,"F"],
 ["A",1/5,1/2,"B",1/3,1/3,"C"]
\end{pro-ana23}

On obtient :

JPEG - 53.1 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_ana23-i.tex, la valeur i étant donnée en argument.

pro-bernoulli


Cet environnement sert à construire un schéma de Bernoulli.

Dans ce premier exemple, il y a deux répétitions :

\begin{pro-bernoulli}{1}
 ["S",1/5,"E"],
 2,
 [                 // ----------------- debut des options
 ["titre-gauche","Schéma de Bernoulli (2 niveaux)"]
 ]                // ----------------- fin des options
\end{pro-bernoulli}

On obtient :

JPEG - 9.7 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_pro-bernoulli i.mp, la valeur i étant donnée en argument.

pro-anabernoulli


Cet environnement sert à analyser le schéma de Bernoulli associé.

\begin{pro-anabernoulli}{1}
 ["S",1/5,"E"],
 2 
\end{pro-anabernoulli}

On obtient :

JPEG - 33.2 ko

NB : le code source correspondant est enregistré dans le fichier :

nomfichier_anabernoulli i.tex, la valeur i étant donnée en argument.

Exemple avec 3 répétitions


\begin{pro-bernoulli}{2}
 ["S",1/5,"E"],
 3,
 [                 // ----------------- debut des options
 ["titre-gauche","Schéma de Bernoulli (3 niveaux)"]
 ]                // ----------------- fin des options
\end{pro-bernoulli}

On obtient :

JPEG - 18.1 ko

\begin{pro-anabernoulli}{2}
 ["S",1/5,"E"],
 3
\end{pro-anabernoulli}

On obtient :

JPEG - 35.6 ko

Exemple avec 4 répétitions


\begin{pro-bernoulli}{3}
 ["S",1/5,"E"],
 4,
 [                 // ----------------- debut des options
 ["titre-gauche","Schéma de Bernoulli (4 niveaux)"]
 ]                // ----------------- fin des options
\end{pro-bernoulli}

On obtient :

JPEG - 35.4 ko

\begin{pro-anabernoulli}{3}
 ["S",1/5,"E"],
 4
\end{pro-anabernoulli}


On obtient :

JPEG - 38.6 ko