Debian Codegraph @

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

raw
1 \SbSbSSCT{Intersection de deux droites}{Intersection of two lines}
2 %\verb \pstInterLL %[hpari]{hAi}{hBi}{hCi}{hDi}{hMi}
3
4 \begin{center}
5 \begin{tabular}{|c|} \hline
6 \begin{pspicture}(-.5,-.5)(5,4.5)
7 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
8 \pstGeonode(1,3){A} (4,1){B} (2,1){C} (4,3.5){D}
9
10 \psline[linecolor=Vert](A)(B)
11 \psline[linecolor=cyan](C)(D)
12 \pstInterLL[linecolor=red]{A}{B}{C}{D}{E}
13 \end{pspicture}
14 \\ \hline
15 \BSS{pstInterLL}[linecolor=red]{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}} \BSI{pstInterLL}{pst-eucl}\\ \hline
16 \end{tabular}
17 \end{center}
18
19 %-----------------
20
21 \SbSbSSCT{Intersection d'une droite et un cercle}{Intersection of a line and a circle}
22
23 \begin{center}
24 \begin{tabular}{|c|} \hline
25 \begin{pspicture}(-.5,-.5)(5,4.5)
26 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
27 \pstGeonode(1,3.5){A}(4,1){B}(2,2){C}(1,2){D}
28 \psline[linecolor=Vert](A)(B)
29 \pstCircleOA[linecolor=cyan]{C}{D}
30 \pstInterLC[linecolor=red]{A}{B}{C}{D}{E}{F}
31 \end{pspicture}
32 \\ \hline
33 \BSS{pstInterLC}{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}\AC{F}} \BSI{pstInterLC}{pst-eucl} \\ \hline
34 \end{tabular}
35 \end{center}
36
37 \bigskip
38 \begin{center}
39 \begin{tabular}{|c|} \hline
40 \begin{pspicture}(-.5,-.5)(5,4.5)
41 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
42 \pstGeonode(1,3.5){A}(4,1){B}(2,2){C}
43 \psline[linecolor=Vert](A)(B)
44 \pscircle[linestyle=dotted](C){1}
45 \pstInterLC[linecolor=red,Radius=\pstDistVal{1}]{A}{B}{C}{}{E}{F}
46 \end{pspicture}
47 \\ \hline
48 \BSS{pstInterLC}[Radius=\BS{pstDistVal}\AC{1}]{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{}}{\red\AC{E}\AC{F}} \BSI{pstInterLC}{pst-eucl} \\ \hline
49
50 \end{tabular}
51 \end{center}
52
53
54 %------------
55
56 \SbSbSSCT{Intersection de deux cercles}{Intersection of two circles}
57
58
59 \begin{center}
60 \begin{tabular}{|c|} \hline
61 \begin{pspicture}(-.5,-.5)(5,5.5)
62 \psaxes[ticksize=5,axesstyle=frame](5,5)
63 \pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
64 \pstCircleOA[linecolor=Vert]{A}{B}
65 \pstCircleOA[linecolor=cyan]{C}{D}
66 \pstInterCC[linecolor=red,PosAngleA=45,PosAngleB=225,]{A}{B}{C}{D}{E}{F}
67 \end{pspicture}
68 \\ \hline
69 \BSS{pstInterCC}[linecolor=red,PosAngleA=45,PosAngleB=225]\\
70 {\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}\AC{F}} \BSI{pstInterCC}{pst-eucl}
71 \\ \hline
72 \end{tabular}
73 \end{center}
74
75 \begin{center}
76 \begin{tabular}{|c|} \hline
77 \begin{pspicture}(-.5,-.5)(5,5.5)
78 \psaxes[ticksize=5,axesstyle=frame](5,5)
79 \pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
80 \pstInterCC[PosAngleA=135,PosAngleB=135, CodeFig=true, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
81 \end{pspicture} \\ \hline
82 CodeFig=true \\ \hline
83 \end{tabular}
84 \end{center}
85
86 \begin{tabular}{|c|c|c|} \hline
87 \begin{pspicture}(-.5,-.5)(5,5.5)
88 \psaxes[ticksize=5,axesstyle=frame](5,5)
89 \pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
90 \pstInterCC[PosAngleA=135,PosAngleB=135, CodeFig=true,CodeFigAarc=false, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
91 \end{pspicture}
92 &
93 \begin{pspicture}(-.5,-.5)(5,5.5)
94 \psaxes[ticksize=5,axesstyle=frame](5,5)
95 \pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
96 \pstInterCC[PosAngleA=135,PosAngleB=135,CodeFig=true, CodeFigBarc=false, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
97 \end{pspicture}
98 \\ \hline
99 CodeFig=true & CodeFig=true \\
100 \RDD{CodeFigAarc}=false \RDI{CodeFigAarc}{pst-eucl} & \RDD{CodeFigBarc}=false \RDI{CodeFigBarc}{pst-eucl}
101 \\ \hline
102 \blue \dft : CodeFigAarc =true & { \blue \dft : CodeFigBarc =true } \\ \hline
103 %& \dft : CodeFigAarc =true & CodeFigBarc =true
104 %\\ \hline
105 \end{tabular}
106
107 %---------
108 \SbSbSSCT{Intersection de deux courbes}{Intersection of two plots}
109
110
111 \psset{unit=.5cm}
112 \begin{center}
113 \begin{tabular}{|c|} \hline
114 \begin{pspicture}*(-5,-2)(5,6.5)
115 \psaxes[xticksize=-1 6,yticksize=-4 4,axesstyle=frame](0,0)(-4,-1)(4,6)
116 \def \F{x 2 exp neg 5 add }
117 \def \G{x 2 exp }
118 \psplot[linecolor=Vert]{-2.5}{2.5}{\F}
119 \psplot[linecolor=cyan]{-2.5}{2.5}{\G}
120 \pstInterFF[linecolor=red]{\F}{\G}{1}{A}
121 \pstInterFF[linecolor=red]{\F}{\G}{-1}{B}
122 \end{pspicture} \\ \hline
123 \BS{}def {\Vert\BS{}F\AC{x 2 exp neg 5 add}} \\
124 \BS{}def {\cyan\BS{}G\AC{x 2 exp}}\\
125 \BSS{pstInterFF}\AC{{\Vert\BS{}F}}\AC{{\cyan\BS{}G}}\AC{1}{\red\AC{A}} \BSI{pstInterFF}{pst-eucl} \\
126 \BSS{pstInterFF}\AC{{\Vert\BS{}F}}\AC{{\cyan\BS{}G}}\rnode{D}{\AC{-1}}{\red\AC{B}} \BSI{pstInterFF}{pst-eucl}
127 \\ \hline
128 \end{tabular}
129 \end{center}
130
131 \rnode{C}{\psframebox{\TFRGB{point d'intersection le plus proche de}{point of intersection nearest to x=-1}}} \ncdiagg{->}{C}{D}
132 \psset{unit=1cm}
133
134
135 %--------------------------------------------------
136 \SbSbSSCT{Intersection d'une droite et d'une courbe}{Intersection of a line and a curve}
137
138
139 \psset{unit=.5cm}
140 \begin{center}
141 \begin{tabular}{|c|} \hline
142 \begin{pspicture}*(-5,-2)(5,6.5)
143 \psaxes[xticksize=-1 6,yticksize=-4 4,axesstyle=frame](0,0)(-4,-1)(4,6)
144 \pstGeonode(-3,5){A}(3,2){B}
145 \pstLineAB[linecolor=cyan]{A}{B}
146 \def \F{x 2 exp neg 5 add }
147 \psplot[linecolor=Vert]{-2.5}{2.5}{\F}
148 \pstInterFL[linecolor=red]{\F}{A}{B}{1}{C}
149 \end{pspicture}
150 \\ \hline
151 {\cyan\BS{pstLineAB}\AC{A}\AC{B}} \\
152 \BS{def} {\Vert\BS{}F\AC{x 2 exp neg 5 add}} \\
153 \BS{pstInterFL}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{1}{\red\AC{C}} \BSI{pstInterFL}{pst-eucl}
154 \\ \hline
155 \end{tabular}
156 \end{center}
157
158 \psset{unit=1cm}
159 %----------------------------------------------------------------------
160 \SbSbSSCT{Intersection d'un cercle et d'une courbe}{Intersection of a circle and a curve}
161 %\verb \pstInterFC %[hpari]{hfi}{hOi}{hAi}{hx0 i}{hMi}
162
163
164 \psset{unit=.5cm}
165
166 \begin{center}
167 \begin{tabular}{|c|} \hline
168 \begin{pspicture}*(-5,-5)(5.5,6.5)
169 \psaxes[xticksize=-4 6,yticksize=-5 5,axesstyle=frame](0,0)(-5,-4)(5,6)
170 \pstGeonode[linecolor=cyan](0,0){A}(-3,2){B}
171 \pstCircleOA[linecolor=cyan]{A}{B}
172
173 \def \F{x 2 exp neg 5 add }
174 \psplot[linecolor=Vert]{-3}{3}{\F}
175 %
176 \pstInterFC[linecolor=red]{\F}{A}{B}{-1}{C}
177 \pstInterFC[linecolor=red]{\F}{A}{B}{1}{D}
178 \pstInterFC[linecolor=red]{\F}{A}{B}{-3}{E}
179 \end{pspicture}
180 \\ \hline
181 \BS{}def {\Vert \BS{}F\AC{x 2 exp neg 5 add }} : fonction $5 - x^2$\\
182 {\cyan\BS{}pstCircleOA\AC{A}\AC{B}}\\
183 \BSS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{-1}{\red\AC{C}} \BSI{pstInterFC}{pst-eucl}\\
184 \BS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{1}{\red\AC{D}}\\
185 \BS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{3}{\red\AC{E}} \\
186 \BS{pstInterFC}{\blue\AC{{\Vert\BS{}F}}}{\cyan\AC{A}\AC{B}}{\red\AC{1}\AC{D}}\\
187 \BS{pstInterFC}{\blue\AC{{\Vert\BS{}F}}}{\cyan\AC{A}\AC{B}}{\red\AC{3}\AC{E}}
188 \\ \hline
189 \end{tabular}
190 \end{center}
191 \psset{unit=1cm}