===== Roues ===== Des roues pour des expériences aléatoires. Il faut dans le préambule du document : <code latex> \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{shapes.geometric,shapes.arrows} </code> * Un premier exemple, avec des secteurs colorés~: <code latex> \begin{tikzpicture} \filldraw[fill=red!20,draw=none] (0,0) -- (90:2cm) arc (90:180:2cm) -- cycle; \filldraw[fill=blue!40,draw=blue!40] (0,0) -- (180:2cm) arc (180:360:2cm) -- cycle; \filldraw[fill=blue!40,draw=blue!40] (0,0) -- (0:2cm) arc (0:90:2cm) -- cycle; \draw[line width=1.2bp] (0,0) circle (2cm); \draw[-latex',line width=5pt, line cap=round] (0,0) -- (203:1.5cm); \node at (135:1cm) {\Large $R$}; \node at (315:1cm) {\Large $B$}; \end{tikzpicture} </code> ce qui donne le schéma suivant : {{:pgf:tikz:probas:roue1.png|}} * Un deuxième exemple, avec des nombres~: <code latex> \begin{tikzpicture} \filldraw[fill=black!20,line width=1.2bp] (0,0) circle (2cm); \foreach \x in {0,60,...,360} \draw[line width=1.2bp] (0,0) -- (\x:2cm); \draw[-latex',line width=5pt, line cap=round] (0,0) -- (48:1.5cm); \node at (30:1.2cm) {\textbf{\Large 2}}; \node at (90:1.2cm) {\textbf{\Large 1}}; \node at (150:1.2cm) {\textbf{\Large 2}}; \node at (210:1.2cm) {\textbf{\Large 3}}; \node at (270:1.2cm) {\textbf{\Large 2}}; \node at (330:1.2cm) {\textbf{\Large 3}}; \end{tikzpicture} </code> ce qui donne le schéma suivant : {{:pgf:tikz:probas:roue2.png|}}