Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/graph4.tex

raw
1 %\SbSSCTTC{Coordonnées d'un point}{Coordonnées d'un point \cite{pst-plot}}{Coordinates of a point}{Coordinates of a point \cite{pst-plot}}
2 \SbSSCT{Coordonnées d'un point}{Coordinates of a point}
3
4
5 \begin{tabular}{|c|} \hline
6 \begin{psgraph}[axesstyle=frame,xticksize=-1.5 1.5 , yticksize=0 13,subticks=0,Dx=1 , dy=.5,Dy=.5] (0,0)(0,-1.5)(13,1.5){12cm}{4cm}
7 \psplot[algebraic,plotpoints=200]{0}{12.56}{ sin(x)}
8 \psCoordinates[linecolor=red,linestyle=dashed,dotstyle=square,dotscale=2](*4 { sin(x)})
9 \end{psgraph}
10 %\pspicture(0,-1.1)(8,1.1)
11 %\psset{xunit=.5cm}
12 %\psplot[algebraic,plotpoints=200]{0}{12.56}{ sin(x)}
13 %\psline{->}(15,0)
14 %\psline{->}(0,-1.1)(0,1.1)
15 %\psCoordinates[linecolor=red,linestyle=dashed,dotstyle=square,dotscale=2](*4 { sin(x)})
16 %\endpspicture
17 \\ \hline
18 \BSS{psCoordinates}[linecolor=red,linestyle=dashed,dotstyle=square,dotscale=2](*4 \AC{sin(x)}) \BSI{psCoordinates}{pst-plot} \\ \hline
19 \end{tabular}
20
21 %---------------------------------------------
22 \SbSSCTTC{Tangente}{Tangente \cite{pstricks-add}}{Tangent}{Tangent \cite{pstricks-add}}
23 \SbSSCT{Tangente}{Tangent}
24
25 \SbSbSSCT{Tangente à une courbe d'après un fichier de données}{Tangent to a data file curve }
26 \BSS{psTangentLine}[Options] (x1,y1)(x2,y2)(x3,y3)\AC{x}\AC{dx}
27 \psset{llx=-.7cm,lly=-.5cm,urx=.5cm,ury=0.5cm,fillstyle=none}
28 \BSI{psTangentLine}{pst-plot}
29 \begin{center}
30 \begin{tabular}{|c|} \hline
31 \begin{psgraph}[axesstyle=frame,xticksize=0 4cm,yticksize=0 12cm,subticks=0,Dx=100,dy=.01,Dy=.2](0,0)(750,.12){12cm}{4cm}
32 \fileplot[linecolor=blue,linewidth=1pt]{mesdata.dat}
33 \psTangentLine[linecolor=red,arrows=<->,arrowscale=2] (198,0.0824)(200,0.0811)(202,0.07962){200}{30}
34 \psTangentLine[linecolor=magenta,arrows=->,arrowscale=2](118,0.0465)(120,0.0445)(122,0.0428){120}{30}
35 \end{psgraph}
36 \\\hline
37 \BSS{psTangentLine}[linecolor=magenta,{\red arrows=->}](118,0.0465)(120,0.0445)(122,0.0428)\AC{120}\AC{30} \BSI{psTangentLine}{pstricks-add} \\
38 \BS{}psTangentLine[linecolor=red,{\red arrows=<->}] (198,0.0824)(200,0.0811)(202,0.07962)\AC{200}\AC{30}
39
40 \\\hline
41 \end{tabular}
42 \end{center}
43
44
45 \newpage
46 \SbSbSSCTTC{Tangente à une fonction}{Tangente à une fonction \cite{pstricks-add}}{Tangent to a function curve}{Tangent to a function curve \cite{pstricks-add}}
47 \psset{xunit=1cm,yunit=.8cm}
48
49
50
51 \TFRGB{syntaxe}{syntax} : \BSS{psplotTangent} * [Options] \AC{x}\AC{dx}\AC{function}
52 \BSI{psplotTangent}{pst-plot}
53
54
55 \begin{center}
56 \begin{tabular}{|c|} \hline
57 \TFRGB{Commande sans astérisque}{Command without asterisk} \\ \hline
58 \begin{psgraph*}[,xticksize= -1.5 1.5 ,yticksize=13 , subticks=0, dx=1,Dx=1, dy=.5,Dy=.5](0,0)(0,-1.5)(13,1.5){10cm}{3cm }
59 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
60 \psplotTangent[linecolor=red,arrows=<->,arrowscale=2,algebraic=true,linewidth=2pt]{\psPiH}{2}{sin(x)}
61 \psplotTangent[linecolor=magenta,arrows=<-,arrowscale=2,algebraic=true,linewidth=2pt]{\psPi}{2}{sin(x)}
62 \psplotTangent[linecolor=green,arrows=->,arrowscale=2,algebraic=true,linewidth=2pt]{\psPiTwo}{3}{sin(x)}
63 \end{psgraph*}
64 \\\hline
65 \BS{psplotTangent}[linecolor=red,arrows=<->]\AC{\BS{}psPiH}\AC{2}\AC{sin(x)} \footnotemark[1] \BSI{psplotTangent}{pstricks-add} \\
66 \BS{}psplotTangent[linecolor=magenta,arrows=<-]\AC{\BS{}psPi}\AC{2}\AC{sin(x)}\\
67 \BS{}psplotTangent[linecolor=green,arrows=->]\AC{\BS{}psPiTwo}\AC{3}\AC{sin(x)}
68 \\\hline
69 \TFRGB{Commande avec astérisque}{Command with asterisk} \\ \hline
70 \begin{psgraph*}[,xticksize= -1.5 1.5 ,yticksize=13 , subticks=0, dx=1,Dx=1, dy=.5,Dy=.5](0,0)(0,-1.5)(13,1.5){10cm}{3cm }
71 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
72 \psplotTangent*[linecolor=red,arrows=<->,arrowscale=2,algebraic=true,linewidth=2pt]{\psPiH}{2}{sin(x)}
73 \psplotTangent*[linecolor=magenta,arrows=<-,arrowscale=2,algebraic=true,linewidth=2pt]{\psPi}{2}{sin(x)}
74 \psplotTangent*[linecolor=green,arrows=->,arrowscale=2,algebraic=true,linewidth=2pt]{\psPiTwo}{3}{sin(x)}
75 \end{psgraph*} %\\
76 \\\hline
77 \BS{}psplotTangent*[linecolor=red,arrows=<->]\AC{\BS{}psPiH}\AC{2}\AC{sin(x)}\\
78 \BS{}psplotTangent*[linecolor=magenta,arrows=<-]\AC{\BS{}psPi}\AC{2}\AC{sin(x)}\\
79 \BS{}psplotTangent*[linecolor=green,arrows=->]\AC{\BS{}psPiTwo}\AC{3}\AC{sin(x)}
80 \\\hline
81
82 \end{tabular}
83 \end{center}
84 %\footnotetext[1]{arrowscale=2,algebraic=true,linewidth=2pt}
85
86 %=====================================================================================
87
88 \SbSbSSCTTC{Tangente à une courbe polaire}{Tangente à une courbe polaire \cite{pstricks-add}}{Tangent to a polar curve}{Tangent to a polar curve \cite{pstricks-add}}
89 \psset{unit=0.4cm}
90
91
92
93 \begin{center}
94 \begin{tabular}{|c|c|} \hline
95 \TFRGB{Commande sans astérisque}{Command without asterisk} & \TFRGB{Commande avec astérisque}{Command with asterisk}
96 \\\hline
97 \begin{psgraph*}[,xticksize= -6 6,yticksize=-6 6 , subticks=0, dx=1,Dx=1, dy=1,Dy=1 ](0,0)(-6,-6)(6,6){4cm}{4cm }
98 \psplot[plotstyle=curve,polarplot=true,linecolor=blue,algebraic=true]{0}{\psPiTwo}{6*sin(2*x)}
99 \psplotTangent[polarplot,linecolor=red,arrows=->,arrowscale=2,algebraic=true,linewidth=2pt]{2}{3}{6*sin(2*x)}
100 \end{psgraph*}
101 &
102 \begin{psgraph*}[,xticksize= -6 6,yticksize=-6 6 , subticks=0, dx=1,Dx=1, dy=1,Dy=1 ](0,0)(-6,-6)(6,6){4cm}{4cm }
103 \psplot[plotstyle=curve,polarplot=true,linecolor=blue,algebraic=true]{0}{\psPiTwo}{6*sin(2*x)}
104 \psplotTangent*[polarplot,linecolor=red,arrows=->,arrowscale=2,algebraic=true,linewidth=2pt]{2}{3}{6*sin(2*x)}
105 \end{psgraph*}
106 \\\hline
107 \multicolumn{2}{|c|}{\BS{}psplotTangent[polarplot,linecolor=red,arrows=->]\AC{2}\AC{3}\AC{6*sin(2*x)} \footnotemark[1]}
108 \\\hline
109 \end{tabular}
110 \end{center}
111
112 \footnotetext[1]{arrowscale=2,algebraic=true,linewidth=2pt}
113 %===========================================================
114
115 \SbSbSSCTTC{Normale à une courbe}{Normale à une courbe \cite{pstricks-add}}{Normal of the tangent line}{Normal of the tangent line \cite{pstricks-add}}
116
117 \begin{center}
118 \begin{tabular}{|c|c|} \hline
119 \begin{psgraph*}[,xticksize= 0 4,yticksize=0 4 , subticks=0, dx=1,Dx=1, dy=1,Dy=1 ](0,0)(0,0)(4,4){4cm}{4cm }
120 \pscurve[showpoints=true](1,1)(2,3)(3,2)
121 \psTangentLine[linecolor=blue,arrows=<->,arrowscale=2,algebraic=true](1,1)(2,3)(3,2){2}{1}
122 \psTangentLine[linecolor=red,arrows=->,arrowscale=2,Tnormal](1,1)(2,3)(3,2){2}{1}
123 \end{psgraph*}
124 &
125 \begin{psgraph*}[,xticksize= -2 1.5 ,yticksize=13 , subticks=0, dx=1,Dx=1, dy=.5,Dy=.5](0,0)(0,-2)(13,1.5){7cm}{4cm }
126 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
127 \psplotTangent[linecolor=blue,arrows=<->,arrowscale=2,algebraic=true]{5}{3}{sin(x)}
128 \psplotTangent[linecolor=red,algebraic=true,Tnormal,arrows=->,arrowscale=2]{5}{2}{sin(x)}
129 \end{psgraph*}
130 \\ \hline
131 \BS{psTangentLine}[\RDD{Tnormal}](1,1)(2,3)(3,2)\AC{2}\AC{1} \RDI{Tnormal}{pstricks-add}
132 &
133 \BS{}psplotTangent[{\red Tnormal}]{5}\AC{2}\AC{sin(x)}
134 \\\hline
135 \end{tabular}
136 \end{center}
137
138
139
140 %================================================================
141 \SbSbSSCTTC{Dérivée}{Dérivée \cite{pstricks-add}}{Derivatives of a function}{Derivatives of a function \cite{pstricks-add}}
142 \psset{unit=1.5cm}
143
144
145
146 \begin{center}
147 \begin{tabular}{|c|} \hline
148 \begin{psgraph*}[,xticksize= -1.5 1.5,yticksize=0 13 , subticks=0, dx=1,Dx=1, dy=.5,Dy=.5 ](0,0)(0,-1.5)(13,1.5){12cm}{3cm }
149 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{sin(.75*x)}
150 \psplot[algebraic,plotpoints=200,linecolor=red,linewidth=2pt]{0}{12.56}{Derive(1,sin(.75*x))}
151 \psplot[algebraic,plotpoints=200,linecolor=green,linewidth=2pt]{0}{12.56}{Derive(2,sin(.75*x))}
152 \end{psgraph*}
153 %\pspicture(0,-1.1)(8,1.1)
154 %\psset{xunit=.75cm}
155 %\psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{sin(.75*x)}
156 % \psplot[algebraic,plotpoints=200,linecolor=red,linewidth=2pt]{0}{12.56}{Derive(1,sin(.75*x))}
157 % \psplot[algebraic,plotpoints=200,linecolor=green,linewidth=2pt]{0}{12.56}{Derive(2,sin(.75*x))}
158 %\psline{->}(15,0)
159 %\endpspicture
160
161 \\\hline
162 %\BS{}psplot[algebraic,plotpoints=200,linecolor=blue]\AC{0}\AC{12.56}\AC{sin(.75*x)} \\
163 \BS{}psplot[algebraic,plotpoints=200,linecolor=red]\AC{0}\AC{12.56}\AC{{\red \RDD{Derive}(\textbf{1},sin(.75*x))}} \RDI{Derive}{pstricks-add} \\
164 \BS{}psplot[algebraic,plotpoints=200,linecolor=green]\AC{0}\AC{12.56}\AC{{\red Derive(\textbf{2},sin(.75*x))}}
165 \\\hline
166 \end{tabular}
167 \end{center}
168 %====================================================
169 \newpage
170 \SbSbSSCTTC{Intégrale de Riemann}{Intégrale de Riemann \cite{pstricks-add}}{Riemann integral}{Riemann integral \cite{pstricks-add}}
171
172
173 \begin{center}
174 \begin{tabular}{|c|c|} \hline
175 \psset{xunit=.5cm}
176 \pspicture(0,-1.1)(13.5,1.1)
177 \psStep[algebraic,linecolor=magenta,StepType=upper,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
178 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
179 \psline{->}(13,0)
180 \endpspicture
181 &
182 \psset{xunit=.5cm}
183 \pspicture(0,-1.1)(13.5,1.1)
184 \psStep[algebraic,linecolor=magenta,StepType=u,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
185 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
186 \psline{->}(13,0)
187 \endpspicture
188 \\\hline
189 \BSS{psStep}[\RDD{StepType}=upper](0,12.56)\AC{24}\AC{sin(x)} \BSI{psStep}{pst-plot}
190 \BSI{psStep}{pstricks-add} \RDI{StepType}{pstricks-add}
191 &
192 \BSS{psStep}[\RDD{StepType}=u](0,12.56)\AC{24}\AC{sin(x)}
193 \\\hline
194
195 \psset{xunit=.5cm}
196 \pspicture(0,-1.1)(13.5,1.1)
197 \psStep[algebraic,linecolor=magenta,StepType=lower,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
198 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
199 \psline{->}(15,0)
200 \endpspicture
201 &
202 \psset{xunit=.5cm}
203 \pspicture(0,-1.1)(13.5,1.1)
204 \psStep[algebraic,linecolor=magenta,StepType=l,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
205 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
206 \psline{->}(13,0)
207 \endpspicture
208 \\\hline
209 \BS{psStep}[\RDD{StepType}=lower](0,12.56)\AC{24}\AC{sin(x)}&
210 \BS{}psStep[\RDD{StepType}=l](0,12.56)\AC{24}\AC{sin(x)}
211 \\\hline
212 \psset{xunit=.5cm}
213 \pspicture(0,-1.1)(13.5,1.1)
214 \psStep[algebraic,linecolor=magenta,StepType=Riemann,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
215 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
216 \psline{->}(15,0)
217 \endpspicture
218 &
219 \psset{xunit=.5cm}
220 \pspicture(0,-1.1)(13.5,1.1)
221 \psStep[algebraic,linecolor=magenta,StepType=R,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
222 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
223 \psline{->}(13,0)
224 \endpspicture
225 \\\hline
226 \BS{}psStep[\RDD{StepType}=Riemann](0,12.56)\AC{24}\AC{sin(x)}&
227 \BS{}psStep[\RDD{StepType}=R](0,12.56)\AC{24}\AC{sin(x)}
228 \\\hline
229
230 \psset{xunit=.5cm}
231 \pspicture(0,-1.1)(13.5,1.1)
232 %\psaxes[Dx=100,Dy=.02]{->}(13,1.5)
233
234
235 \psStep[algebraic,linecolor=magenta,StepType=infimum,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
236 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
237 \psline{->}(15,0)
238 \endpspicture
239 &
240 \psset{xunit=.5cm}
241 \pspicture(0,-1.1)(13.5,1.1)
242 \psStep[algebraic,linecolor=magenta,StepType=i,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
243 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
244 \psline{->}(13,0)
245 \endpspicture
246 \\\hline
247 \BS{}psStep[\RDD{StepType}=infimum](0,12.56)\AC{24}\AC{sin(x)}&
248 \BS{}psStep[\RDD{StepType}=i](0,12.56)\AC{24}\AC{sin(x)}
249 \\\hline
250
251 \psset{xunit=.5cm}
252 \pspicture(0,-1.1)(13.5,1.1)
253 %\psaxes[Dx=100,Dy=.02]{->})(13,1.5)
254
255 \psStep[algebraic,linecolor=magenta,StepType=supremum,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
256 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
257 \psline{->}(15,0)
258 \endpspicture
259 &
260 \psset{xunit=.5cm}
261 \pspicture(0,-1.1)(13.5,1.1)
262 \psStep[algebraic,linecolor=magenta,StepType=s,fillcolor=yellow,fillstyle=solid](0,12.56){24}{ sin(x)}
263 \psplot[algebraic,plotpoints=200,linecolor=blue]{0}{12.56}{ sin(x)}
264 \psline{->}(13,0)
265 \endpspicture
266 \\\hline
267 \BS{}psStep[\RDD{StepType}=supremum](0,12.56)\AC{24}\AC{sin(x)}&
268 \BS{}psStep[\RDD{StepType}=s](0,12.56)\AC{24}\AC{sin(x)}
269 \\\hline
270
271 \end{tabular}
272 \end{center}
273
274 \SbSbSSCTTC{Méthode de Newton}{Méthode de Newton \cite{pst-plot}}{Newton method}{Newton method \cite{pst-plot}}
275
276 \TFRGB{syntaxe}{syntax} : \BS{psNewton} [Options] \AC{$x0$} \AC{f(x)} \AC{\TFRGB{nombre d'itération}{number of iteration}}
277
278 \bigskip
279 \psset{yunit=.5cm}
280 \begin{tabular}{|c|c|}
281 \hline
282 \multicolumn{2}{|c|}{\BS{}psplot[algebraic,linestyle=dotted]\AC{0}\AC{12.56}\AC{0.5*x $\hat{}$ 2-2} }\\
283 \multicolumn{2}{|c|}{\BSS{psNewton}[linecolor=red]\AC{4}\AC{0.5*x $\hat{}$ 2-2}\AC{20} \BSI{psNewton}{pst-plot} }\\ \hline
284 \begin{pspicture}*[algebraic,shift=*](-1,-2)(5,7)
285 %\psframe(-1,-2)(5,7)
286 \psaxes{->}(4.5,6)
287 \psplot[algebraic,plotpoints=200,linestyle=dotted]{0}{12.56}{0.5*x^2-2}
288 \psframe[linestyle=dashed,linecolor=green](1.9,-.2)(2.2,.5)
289 \pnode(2.2,0.2){A}
290 \psNewton[linecolor=red,linewidth=0.5pt]{4}{0.5*x^2-2}{20}
291 \end{pspicture}
292 &
293 \psset{unit=15cm,yunit=6cm}
294 \begin{pspicture}*[algebraic,shift=*](1.9,-.25)(2.2,.55)
295 \psaxes[Dx=.1]{->}(4,4)
296 \psplot[algebraic,plotpoints=200,linestyle=dotted]{1.5}{2.5}{0.5*x^2-2}
297 \psframe[linestyle=dashed,linecolor=green](1.9,-.2)(2.2,.5)
298 \pnode(1.9,0.2){B}
299
300 \psNewton[linecolor=red,linewidth=0.5pt,arrowscale=3]{2.1}{0.5*x^2-2}{2}
301 \end{pspicture}
302 \\
303 \hline
304 \end{tabular}
305 %------------------------------
306 \ncline[linestyle=dashed,linecolor=green]{->}{A}{B}
307 \bigskip
308
309
310 \begin{tabular}{|c|c|}
311 \hline
312 \multicolumn{2}{|c|}{\BSS{psNewton}[linecolor=red,\RDD{plotstyle=xvalues}]\AC{4}\AC{0.5*x $\hat{}$ 2-2}\AC{1} \BSI{psNewton}{pst-plot} }\\ \hline
313 \begin{pspicture}*[algebraic,shift=*](-1,-2)(5,7)
314 %\psframe(-1,-2)(5,7)
315 \psaxes{->}(4.5,6)
316 \psplot[algebraic,plotpoints=200,linestyle=dotted]{0}{12.56}{0.5*x^2-2}
317 \psframe[linestyle=dashed,linecolor=green](1.9,-.2)(2.2,.5)
318 \psNewton[linecolor=red,linewidth=0.5pt]{4}{0.5*x^2-2}{20}
319 \psNewton[linecolor=red,linewidth=0.5pt,plotstyle=xvalues]{4}{0.5*x^2-2}{1}
320 \end{pspicture}
321 &
322 \psset{unit=15cm,yunit=6cm}
323 \begin{pspicture}*[algebraic,shift=*](1.9,-.25)(2.2,.55)
324 \psaxes[Dx=.1]{->}(4,4)
325 \psplot[algebraic,plotpoints=200,linestyle=dotted]{1.5}{2.5}{0.5*x^2-2}
326 \psframe[linestyle=dashed,linecolor=green](1.9,-.2)(2.2,.5)
327 \psNewton[linecolor=red,linewidth=0.5pt]{2.1}{0.5*x^2-2}{2}
328 \psNewton[linecolor=red,linewidth=0.5pt,plotstyle=xvalues]{2.1}{0.5*x^2-2}{1}
329 \end{pspicture}
330 \\ \hline
331 \end{tabular}
332 %---------------------------------------------------------
333
334 \bigskip
335 \begin{tabular}{|c|c|}
336 \hline
337 \multicolumn{2}{|c|}{\BSS{psNewton}[linecolor=red,{\red showDerivation=false}]\AC{4}\AC{0.5*x $\hat{}$ 2-2}\AC{1} }\\ \hline
338 \begin{pspicture}*[algebraic,shift=*](-.5,-3)(5,7)
339 \psaxes{->}(10,10)
340 \psplot[algebraic,plotpoints=200,linestyle=dotted]{0}{12.56}{0.5*x^2-2}
341 \psNewton[linecolor=red,linewidth=0.5pt,showDerivation=false]{4}{0.5*x^2-2}{20}
342 \end{pspicture}
343 &
344 \begin{pspicture}*[algebraic,shift=*](-.5,-3)(5,7)
345 \psaxes{->}(10,10)
346 \psplot[algebraic,plotpoints=200,linestyle=dotted]{0}{12.56}{0.5*x^2-2}
347 \psNewton[linecolor=red,linewidth=0.5pt,showDerivation=true]{4}{0.5*x^2-2}{20}
348 \end{pspicture}
349 \\
350 \hline \RDD{showDerivation} {\red =false } & {\red showDerivation=true} (par défaut) \\
351 \hline
352 \end{tabular}
353
354 \newpage
355 \subsection[Macro psFixpoint]{Macro psFixpoint \cite{pst-plot}}
356 \TFRGB{syntaxe}{syntax} : \BS{psFixpoint} [Options] \AC{$x_0$}\AC{f(x)}\AC{\TFRGB{nombre d'itération}{number of iteration}}
357
358 \bigskip
359 \begin{tabular}{|c|}
360 \hline
361 \psset{unit=.5cm}
362
363 \begin{pspicture}*[algebraic](-2.5,-2)(10,10.5)
364 %\pframe(-2.5,-2)(10,10.5)
365 \psaxes{->}(10,10)
366 \psplot[algebraic,plotpoints=200,linestyle=dotted,linewidth=2pt]{1}{10}{0.2*x^2-2}
367 \psline[linecolor=red,linestyle=dashed](10,10)
368 \psFixpoint[linecolor=red]{6}{0.2*x^2-2}{3}
369 \end{pspicture}
370 \psset{unit=1cm}
371 \\ \hline
372 \BS{}psplot[algebraic,linestyle=dotted]\AC{1}\AC{10}\AC{0.5*x $\hat{}$ 2-2} \\
373 \BS{}psline[linecolor=red,linestyle=dashed](10,10) \\
374 \BSS{psFixpoint}[linecolor=red]\AC{6}\AC{0.5*x $\hat{}$ 2-2}\AC{3} \BSI{psFixpoint}{pst-plot} \\ \hline
375 \end{tabular}
376
377 \psset{unit=1cm,yunit=1cm}
378
379
380 \newpage
381 \subsection[Macro psVectorfield]{Macro psVectorfield \cite{pst-plot}}
382
383 \label{vec}
384 \begin{tabular}{|c|} \hline
385 Solutions de $ \dfrac{dy}{dx}=x+y+1 $
386 \\ \hline
387 \BSS{psVectorfield}[algebraic](-2,-2)(2,2)\AC{ x+y+1} \BSI{psVectorfield}{pst-plot}
388 \\ \hline
389 \psset{unit=1.5cm}
390 \begin{pspicture}(-2.5,-2.2)(2.5,2.2)
391 \psVectorfield[algebraic](-2,-2)(2,2){ x+y+1}
392 \end{pspicture}
393 \\ \hline
394 \end{tabular}
395
396
397
398
399 \bigskip
400
401 \begin{tabular}{|c|} \hline
402 \BSS{psVectorfield}[algebraic,\RDD{Dx}=0.3,\RDD{Dy}=0.3](-2,-2)(2,2)\AC{ x+y+1} \RDI{Dx}{pst-plot} \RDI{Dy}{pst-plot}
403 \\ \hline
404 \psset{unit=1.5cm}
405 \begin{pspicture}(-2.2,-2.5)(2.2,2.5)
406 %\psaxes[ticksize=0 4pt,axesstyle=frame,tickstyle=inner,subticks=20,
407 %Ox=-1,Oy=-1](-1,-1)(1,1)
408 %\psset{arrows=->,algebraic}
409 \psVectorfield[algebraic,Dx=.3,Dy=.3](-2,-2)(2,2){ x+y+1}
410 \end{pspicture}
411 \\ \hline
412 \dft : Dx= 0.1 , Dy= 0.1
413 \\ \hline
414 \end{tabular}