| 1 |
\section{Courbes avec équations paramétrées} |
| 2 |
\hypertarget{tfpa}{} |
| 3 |
\begin{NewMacroBox}{tkzFctPar}{\oarg{local options}\marg{$x(t)$}\marg{$y(t)$}} |
| 4 |
\emph{$x(t)$ et $y(t)$ sont des expressions utilisant la syntaxe de \tkzname{gnuplot}. La variable est $t$.} |
| 5 |
|
| 6 |
\medskip |
| 7 |
\begin{tabular}{lll} |
| 8 |
\toprule |
| 9 |
options & exemple & explication \\ |
| 10 |
\midrule |
| 11 |
\TAline{$x(t)$,$y(t)$}{\tkzcname{tkzFctPar[0:1]}\{\tkzcname{t**3}\}\{\tkzcname{t**2}\}}{$x(t)=t^3$,$y(t)=t^2$ } |
| 12 |
\bottomrule |
| 13 |
\end{tabular} |
| 14 |
|
| 15 |
Les options sont celles de \TIKZ. |
| 16 |
|
| 17 |
\begin{tabular}{lll} |
| 18 |
\toprule |
| 19 |
options & défaut & définition \\ |
| 20 |
\midrule |
| 21 |
\TOline{domain}{-5:5}{domaine de la fonction} |
| 22 |
\TOline{samples}{200}{nombre de points utilisés} |
| 23 |
\TOline{id} {tkzfonct}{permet d'identifier les noms des fichiers auxiliaires} |
| 24 |
\TOline{color}{black}{couleur de la ligne} |
| 25 |
\TOline{line width} {0.4pt}{épaisseur de la ligne} |
| 26 |
\TOline{style} {solid}{style de la ligne} |
| 27 |
\bottomrule |
| 28 |
\end{tabular} |
| 29 |
\end{NewMacroBox} |
| 30 |
|
| 31 |
\subsection{Courbe paramétrée exemple 1} |
| 32 |
|
| 33 |
\begin{align*} |
| 34 |
x(t) &=t- \sin(t)\\ |
| 35 |
y(t) &=1-\cos(t)\\ |
| 36 |
\end{align*} |
| 37 |
|
| 38 |
\begin{center} |
| 39 |
\begin{tkzexample}[] |
| 40 |
\begin{tikzpicture} |
| 41 |
\tkzInit[ymax=2.25,ystep=.5] \tkzGrid |
| 42 |
\tkzAxeXY |
| 43 |
\tkzFctPar[samples=400,domain=0:2*pi]{(t-sin(t))}{(1-cos(t))} |
| 44 |
\end{tikzpicture} |
| 45 |
\end{tkzexample} |
| 46 |
\end{center} |
| 47 |
|
| 48 |
|
| 49 |
\newpage |
| 50 |
\subsection{Courbe paramétrée exemple 2} |
| 51 |
|
| 52 |
\begin{align*} |
| 53 |
x(t) &=t\times \sin(t)\\ |
| 54 |
y(t) &=t\times \cos(t)\\ |
| 55 |
\end{align*} |
| 56 |
|
| 57 |
\begin{center} |
| 58 |
\begin{tkzexample}[vbox] |
| 59 |
\begin{tikzpicture}[scale=1.25] |
| 60 |
\tkzInit[xmin=-50,xmax=50,xstep=10, |
| 61 |
ymin=-50,ymax=50,ystep=10] |
| 62 |
\tkzGrid |
| 63 |
\tkzAxeXY |
| 64 |
\tkzFctPar[smooth,samples=200,domain=0:50]{t*sin(t)}{t*cos(t)} |
| 65 |
\end{tikzpicture} |
| 66 |
\end{tkzexample} |
| 67 |
\end{center} |
| 68 |
|
| 69 |
|
| 70 |
\newpage |
| 71 |
\subsection{Courbe paramétrée exemple 3} |
| 72 |
\begin{align*} |
| 73 |
x(t) &=\exp(t)\times \sin(t)\\ |
| 74 |
y(t) &=\exp(t)\times \cos(t)\\ |
| 75 |
\end{align*} |
| 76 |
|
| 77 |
\begin{center} |
| 78 |
\begin{tkzexample}[vbox] |
| 79 |
\begin{tikzpicture}[scale=1.5] |
| 80 |
\tkzInit[xmin=-2,xmax=10,xstep=2,ymin=-10,ymax=4,ystep=2] |
| 81 |
\tkzGrid[sub] |
| 82 |
\tkzAxeX[step=2] |
| 83 |
\tkzAxeY[step=2] |
| 84 |
\tkzFctPar[samples=400,domain=-pi:pi]{exp(t)*sin(t)}{exp(t)*cos(t)} |
| 85 |
\end{tikzpicture} |
| 86 |
\end{tkzexample} |
| 87 |
\end{center} |
| 88 |
|
| 89 |
|
| 90 |
\newpage |
| 91 |
|
| 92 |
\subsection{Courbe paramétrée exemple 4} |
| 93 |
\begin{align*} |
| 94 |
x(t) &=\cos^3(t)\\ |
| 95 |
y(t) &=\sin^3(t)\\ |
| 96 |
\end{align*} |
| 97 |
|
| 98 |
\begin{center} |
| 99 |
\begin{tkzexample}[vbox] |
| 100 |
\begin{tikzpicture}[scale=1.25] |
| 101 |
\tkzInit[xmin=-1,xmax=1,xstep=.2, |
| 102 |
ymin=-1,ymax=1,ystep=.2] |
| 103 |
\tkzFctPar[color=red, |
| 104 |
line width=2pt, |
| 105 |
fill=orange, |
| 106 |
opacity=.4, |
| 107 |
samples=400, |
| 108 |
domain=0:2*pi]{(cos(t))**3}{(sin(t))**3} |
| 109 |
\end{tikzpicture} |
| 110 |
\end{tkzexample} |
| 111 |
\end{center} |
| 112 |
|
| 113 |
|
| 114 |
\newpage |
| 115 |
\subsection{Courbe paramétrée exemple 5} |
| 116 |
Saint Valentin version 1 |
| 117 |
\begin{align*} |
| 118 |
x(t) &=\sin^3(t)\\ |
| 119 |
y(t) &=\cos(t)-\cos^4(t)\\ |
| 120 |
\end{align*} |
| 121 |
|
| 122 |
|
| 123 |
\begin{center} |
| 124 |
\begin{tkzexample}[vbox] |
| 125 |
\begin{tikzpicture}[scale=4] |
| 126 |
\tkzInit[xmin=-1,xmax=1,ymin=-2,ymax=1] |
| 127 |
\tkzClip |
| 128 |
\tkzFctPar[samples=500,smooth,domain=-pi:pi, |
| 129 |
ball color=red,shading=ball]% |
| 130 |
{(sin(t))**3}{cos(t)-(cos(t))**4} |
| 131 |
\end{tikzpicture} |
| 132 |
\end{tkzexample} |
| 133 |
\end{center} |
| 134 |
|
| 135 |
|
| 136 |
\newpage |
| 137 |
\subsection{Courbe paramétrée exemple 6} |
| 138 |
Saint Valentin version 2 from \url{http://mathworld.wolfram.com/HeartCurve.html} |
| 139 |
|
| 140 |
\begin{align*} |
| 141 |
x(t) &=\sin(t)\cos(t)\log(|t|)\\ |
| 142 |
y(t) &=\sqrt{(|t|)\cos(t)}\\ |
| 143 |
\end{align*} |
| 144 |
|
| 145 |
|
| 146 |
\begin{center} |
| 147 |
\begin{tkzexample}[vbox] |
| 148 |
\begin{tikzpicture}[scale=1.5] |
| 149 |
\tkzInit[xmin=-.4,xmax=.4,xstep=.1,ymin=0,ymax=.7,ystep=.1] |
| 150 |
\tkzClip |
| 151 |
\tkzFctPar[samples=2000,smooth,domain=-1:1, |
| 152 |
ball color=red,shading=ball]% |
| 153 |
{sin(t)*cos(t)*log(abs(t))}{sqrt(abs(t))*cos(t)} |
| 154 |
\end{tikzpicture} |
| 155 |
\end{tkzexample} |
| 156 |
\end{center} |
| 157 |
|
| 158 |
|
| 159 |
\newpage |
| 160 |
\subsection{Courbe paramétrée exemple 7} |
| 161 |
Saint Valentin version 3 from \url{http://en.wikipedia.org/wiki/Heart_(symbol)} |
| 162 |
|
| 163 |
\begin{align*} |
| 164 |
x(t) &=16\sin^3(t)\\ |
| 165 |
y(t) &=13\cos(t)-5\cos(2t)-2cos(3t)-cos(4t)\\ |
| 166 |
\end{align*} |
| 167 |
|
| 168 |
|
| 169 |
\begin{tkzexample}[vbox] |
| 170 |
\begin{tikzpicture}[scale=1.75] |
| 171 |
\tkzInit[xmin=-20,xmax=20,xstep=5,ymin=-25,ymax=15,ystep=5] |
| 172 |
\tkzClip |
| 173 |
\tkzFctPar[samples=400,smooth,domain=0:6.28, |
| 174 |
ball color=red,shading=ball]% |
| 175 |
{16*(sin(t))**3}{13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)} |
| 176 |
\end{tikzpicture} |
| 177 |
\end{tkzexample} |
| 178 |
\endinput |
| 179 |
|