| 1 |
\section{Droites particulières} |
| 2 |
\subsection{ Tracer une ligne verticale } |
| 3 |
\begin{NewMacroBox}{tkzVLine}{\oarg{local options}\marg{decimal number}} |
| 4 |
Attention, la syntaxe est celle de \tkzname{fp} car on n'utilise pas \tkzname{gnuplot} pour tracer une droite. |
| 5 |
|
| 6 |
\begin{tabular}{lll} |
| 7 |
\toprule |
| 8 |
arguments & exemple & définition \\ |
| 9 |
\midrule |
| 10 |
\TAline{decimal number}{\tkzcname{tkzVLine\{1\}}}{Trace la droite $x=1$} |
| 11 |
\bottomrule |
| 12 |
\end{tabular} |
| 13 |
|
| 14 |
\medskip |
| 15 |
\begin{tabular}{lll} |
| 16 |
\toprule |
| 17 |
options & défaut & définition \\ |
| 18 |
\midrule |
| 19 |
\TOline{color }{|black| }{ couleur du trait} |
| 20 |
\TOline{line width}{|0.6pt| }{ épaisseur du point} |
| 21 |
\TOline{style }{|solid|}{ style du trait } |
| 22 |
\bottomrule |
| 23 |
\end{tabular} |
| 24 |
|
| 25 |
\emph{voir les options les lignes dans \TIKZ} |
| 26 |
\end{NewMacroBox} |
| 27 |
|
| 28 |
|
| 29 |
\subsection{Ligne verticale } |
| 30 |
problème avec cette macro, en principe 1./3 devrait être acceptée. |
| 31 |
\begin{tkzexample}[latex=8cm] |
| 32 |
\begin{tikzpicture}[scale=2] |
| 33 |
\tkzInit[xmax=3,ymax=2] |
| 34 |
\tkzAxeXY |
| 35 |
\tkzVLine[color = blue, |
| 36 |
style = dashed, |
| 37 |
line width = 1pt]{2} |
| 38 |
\tkzVLine[color = red, |
| 39 |
style = dashed, |
| 40 |
line width = 1pt]{1./3} |
| 41 |
\end{tikzpicture} |
| 42 |
\end{tkzexample} |
| 43 |
|
| 44 |
|
| 45 |
\newpage |
| 46 |
\begin{NewMacroBox}{tkzVLines}{\oarg{local options}\marg{list of values}} |
| 47 |
Attention, la syntaxe est celle de \tkzname{fp} car on n'utilise pas \tkzname{gnuplot} pour tracer une droite. |
| 48 |
|
| 49 |
\begin{tabular}{lll} |
| 50 |
\toprule |
| 51 |
arguments & exemple & définition \\ |
| 52 |
\midrule |
| 53 |
\TAline{list of values}{\tkzcname{tkzVLines\{1,4\}}}{Trace les droites $x=1$ et $x=4$} |
| 54 |
\bottomrule |
| 55 |
\end{tabular} |
| 56 |
|
| 57 |
\end{NewMacroBox} |
| 58 |
|
| 59 |
\subsection{Lignes verticales} |
| 60 |
|
| 61 |
\begin{tkzexample}[latex=7cm] |
| 62 |
\begin{tikzpicture} |
| 63 |
\tkzInit[xmax=5,ymax=5] |
| 64 |
\tkzAxeXY |
| 65 |
\tkzVLines[color = green]{1,2,...,4} |
| 66 |
\end{tikzpicture} |
| 67 |
\end{tkzexample} |
| 68 |
|
| 69 |
\subsection{Ligne verticale et valeur calculée par \tkzname{fp} } |
| 70 |
\begin{tkzexample}[] |
| 71 |
\begin{tikzpicture} |
| 72 |
\tkzInit[xmin=-7,xmax=7,ymin=-1,ymax=1] |
| 73 |
\tkzAxeY |
| 74 |
\tkzAxeX[trig=2] |
| 75 |
\foreach\v in {-2,-1,1,2} |
| 76 |
{\tkzVLine[color=red]{\v*\FPpi}} |
| 77 |
\end{tikzpicture} |
| 78 |
\end{tkzexample} |
| 79 |
|
| 80 |
\newpage |
| 81 |
\subsection{Une ligne horizontale} |
| 82 |
\begin{NewMacroBox}{tkzHLine}{\oarg{local options}\marg{decimal number}} |
| 83 |
\begin{tabular}{lll} |
| 84 |
arguments & exemple & définition \\ |
| 85 |
\midrule |
| 86 |
\TAline{decimal number}{\tkzcname{tkzVLine\{1\}}}{Trace la droite $y=1$} |
| 87 |
\end{tabular} |
| 88 |
\end{NewMacroBox} |
| 89 |
|
| 90 |
\begin{tkzexample}[latex=7cm] |
| 91 |
\begin{tikzpicture} |
| 92 |
\tkzInit[xmax=80,xstep=20,ymax=2] |
| 93 |
\tkzAxeXY |
| 94 |
\tkzHLine[color=red]{exp(1)-1} |
| 95 |
\end{tikzpicture} |
| 96 |
\end{tkzexample} |
| 97 |
\subsection{Asymptote horizontale} |
| 98 |
Attention, une autre méthode consiste à écrire \tkzcname{tkzFct{$\text{k}$}} mais si \tkzname{ystep= $n$} avec $n$ entier naturel alors il est nécessaire d'écrire $k$ comme un nombre réel, par exemple si \tkzname{ystep= $3$} alors il faut écrire $k=5.0$. |
| 99 |
|
| 100 |
\begin{tkzexample}[] |
| 101 |
\begin{tikzpicture}[scale=2.5] |
| 102 |
\tkzInit[xmax=5,ymin=0.5,ymax=1.5,ystep=0.5] |
| 103 |
\tkzGrid |
| 104 |
\tkzAxeXY |
| 105 |
\tkzFct[domain = 0:10]{x*exp(-x)+1} |
| 106 |
\tkzHLine[color=red,style=solid,line width=1.2pt]{1} |
| 107 |
\tkzDrawTangentLine[draw,color=blue](1) |
| 108 |
\tkzText[draw,fill = brown!20](2,0.75){$f(x)=x \text{e}^{-x}+1$} |
| 109 |
\end{tikzpicture} |
| 110 |
\end{tkzexample} |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
\newpage |
| 115 |
|
| 116 |
\subsection{Lignes horizontales} |
| 117 |
|
| 118 |
\begin{NewMacroBox}{tkzHLines}{\oarg{local options}\marg{list of values}} |
| 119 |
\begin{tabular}{lll} |
| 120 |
arguments & exemple & définition \\ |
| 121 |
\midrule |
| 122 |
\TAline{list of values}{\tkzcname{tkzHLines\{1,4\}}}{Trace les droites $y=1$ et $y=4$} |
| 123 |
\bottomrule |
| 124 |
\end{tabular} |
| 125 |
\end{NewMacroBox} |
| 126 |
|
| 127 |
\begin{tkzexample}[] |
| 128 |
\begin{tikzpicture} |
| 129 |
\tkzInit |
| 130 |
\tkzAxeXY |
| 131 |
\tkzHLines[color = green]{1,2,...,10} |
| 132 |
\end{tikzpicture} |
| 133 |
\end{tkzexample} |
| 134 |
|
| 135 |
|
| 136 |
\newpage |
| 137 |
\subsection{Asymptote horizontale et verticale} |
| 138 |
\begin{tkzexample}[vbox] |
| 139 |
\begin{tikzpicture}[scale=1.25] |
| 140 |
\tkzInit |
| 141 |
\tkzGrid |
| 142 |
\tkzAxeXY |
| 143 |
\tkzFct[color=red,domain=1.001:1.9]{1+1/(log(x-1)**2)} |
| 144 |
\tkzFct[color=red,domain = 2.1:10]{1+1/(log(x-1)**2)} |
| 145 |
\tkzHLine[line width=1pt,color=red]{1} |
| 146 |
\tkzVLine[line width=1pt,color=blue]{2} |
| 147 |
\tkzDefPoint(1,1){A} |
| 148 |
\tkzDrawPoint[fill=white,color=Maroon,size=4](A) |
| 149 |
\tkzDefPointByFct[draw,with=b]({1+exp(1)}) |
| 150 |
\tkzLabelPoint[above right](tkzPointResult){$(1+\text{e}~;~2)$} |
| 151 |
\tkzText[draw,color = black,fill = brown!20](6,6)% |
| 152 |
{$f(x)=\dfrac{1}{\ln^2 (x-1)}+1$} |
| 153 |
\end{tikzpicture} |
| 154 |
\end{tkzexample} |
| 155 |
|
| 156 |
|
| 157 |
\endinput |