Debian Codegraph @

texmf-dist/doc/latex/tkz-fct/TKZdoc-fct-polar.tex

raw
1 \section{Courbes en coordonnées polaires}
2
3 \hypertarget{tfpo}{}
4 \begin{NewMacroBox}{tkzFctPolar}{\oarg{local options}\marg{$f(t)$}}
5 \emph{$f(t)$ est une expression utilisant la syntaxe de \tkzname{gnuplot}. }
6
7 \medskip
8 \begin{tabular}{lll}
9 \toprule
10 options & exemple & explication \\
11 \midrule
12 \TAline{$x(t)$,$y(t)$}{\tkzcname{tkzFctPar[0:1]}\{\tkzcname{t**3}\}\{\tkzcname{t**2}\}}{$x(t)=t^3$,$y(t)=t^2$ }
13 \bottomrule
14 \end{tabular}
15
16 Les options sont celles de \TIKZ.
17
18 \begin{tabular}{lll}
19 \toprule
20 options & défaut & définition \\
21 \midrule
22 \TOline{domain}{0:2*pi}{domaine de la fonction}
23 \TOline{samples}{200}{nombre de points utilisés}
24 \TOline{id} {tkzfonct}{permet d'identifier les noms des fichiers auxiliaires}
25 \TOline{color}{black}{couleur de la ligne}
26 \TOline{line width} {0.4pt}{épaisseur de la ligne}
27 \TOline{style} {solid}{style de la ligne}
28 \bottomrule
29 \end{tabular}
30
31 \medskip
32 \emph{ \tkzname{gnuplot} définit $\pi$ avec \tkzname{pi} et \tkzname{fp.sty} avec \tkzcname{FPpi}. Les valeurs qui déterminent le domaine sont évaluées par \tkzname{fp.sty}. Il est possible d'utiliser soit \tkzname{pi}, soit \tkzcname{FPpi}.}
33 \end{NewMacroBox}
34
35 \subsection{Équation polaire exemple 1}
36
37 $ \rho(t)= \cos(t)*\sin(t) $
38
39 \begin{tkzexample}[latex=8cm]
40 \begin{tikzpicture}[scale=0.75]
41 \tkzInit [xmin=-0.5,xmax=0.5,
42 ymin=-0.5,ymax=0.5,
43 xstep=0.1,ystep=.1]
44 \tkzDrawX \tkzDrawY
45 \tkzFctPolar[domain=-2*pi:2*pi]{cos(t)*sin(t)}
46 \end{tikzpicture}
47 \end{tkzexample}
48
49 \newpage
50 \subsection{Équation polaire exemple 2}
51 $ \rho(t)= \cos(2*t) $
52
53 \begin{center}
54 \begin{tkzexample}[]
55 \begin{tikzpicture}[scale=1.25]
56 \tkzInit [xmin=-1,xmax=1,
57 ymin=-1,ymax=1,
58 xstep=.2,ystep=.2]
59 \tkzDrawX \tkzDrawY
60 \tkzFctPolar[domain=0:2*pi]{cos(2*t)}
61 \end{tikzpicture}
62 \end{tkzexample}
63 \end{center}
64
65
66 \newpage
67 \subsection{Équation polaire Heart}
68 From Mathworld : \url{http://mathworld.wolfram.com/HeartCurve.html}
69
70 $\rho(t)= 2-2*\sin(t)+\sin(t)*\sqrt(|\cos(t)|)/(\sin(t)+1.4 $
71
72 \vspace{2cm}
73 \begin{center}
74 \begin{tkzexample}[]
75 \begin{tikzpicture}[scale=3]
76 \tkzInit[xmin=-5,xmax=5,ymin=-5,ymax=5]
77 \tkzFctPolar[domain = -pi:pi,
78 samples = 800,
79 ball color = red,
80 shading = ball]%
81 {2-2*sin(t)+sin(t)*sqrt(abs(cos(t)))/(sin(t)+1.4)}
82 \end{tikzpicture}
83 \end{tkzexample}
84 \end{center}
85
86 \subsection{Équation polaire exemple 4}
87 $\rho(t)= 1-sin(t)$
88
89 \vspace{2cm}
90 \begin{center}
91 \begin{tkzexample}[vbox]
92 \begin{tikzpicture}[scale=4]
93 \tkzInit [xmin=-5,xmax=5,ymin=-5,ymax=5,xstep=1,ystep=1]
94 \tkzFctPolar[domain=0:2*pi,samples=400]{ 1-sin(t) }
95 \end{tikzpicture}
96 \end{tkzexample}
97 \end{center}
98
99
100 \newpage
101 \subsection{Équation polaire Cannabis ou Marijuana Curve}
102 Cannabis curve from mathworld : \url{http://mathworld.wolfram.com/CannabisCurve.html}
103
104 $ \rho(t)=(1+.9*\cos(8*t))*(1+.1*\cos(24*t))*(1+.1*\cos(200*t))*(1+\sin(t)) $
105
106 \begin{center}
107 \begin{tkzexample}[vbox]
108 \begin{tikzpicture}[scale=2.5]
109 \tkzInit [xmin=-5,xmax=5,ymin=-5,ymax=5,xstep=1,ystep=1]
110 \tkzFctPolar[domain=0:2*pi,samples=1000]%
111 { (1+.9*cos(8*t))*(1+.1*cos(24*t))*(1+.1*cos(200*t))*(1+sin(t)) }
112 \end{tikzpicture}
113 \end{tkzexample}
114 \end{center}
115
116
117 \newpage
118 \subsection{Scarabaeus Curve}
119 From mathworld : \url{http://mathworld.wolfram.com/Scarabaeus.html}
120
121 $\rho(t)=1.6*\cos(2*t)-3*\cos(t) $
122
123 \vspace{2cm}
124 \begin{center}
125 \begin{tkzexample}[]
126 \begin{tikzpicture}[scale=2.5]
127 \tkzInit [xmin=-5,xmax=5,ymin=-5,ymax=5,xstep=1,ystep=1]
128 \tkzFctPolar[domain=0:2*pi,samples=400]{1.6*cos(2*t)-3*cos(t) }
129 \end{tikzpicture}
130 \end{tkzexample}
131 \end{center}
132
133
134 \endinput
135