summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/geom4.tex
blob: c68612fb1368c9d63ef21247d2524eb7913024f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
\SbSbSSCT{Intersection de deux droites}{Intersection of two lines}
%\verb \pstInterLL %[hpari]{hAi}{hBi}{hCi}{hDi}{hMi}

\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}(-.5,-.5)(5,4.5)
\psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
\pstGeonode(1,3){A} (4,1){B} (2,1){C} (4,3.5){D}

\psline[linecolor=Vert](A)(B)
\psline[linecolor=cyan](C)(D)
\pstInterLL[linecolor=red]{A}{B}{C}{D}{E}
\end{pspicture}
\\ \hline
\BSS{pstInterLL}[linecolor=red]{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}}  \BSI{pstInterLL}{pst-eucl}\\ \hline
\end{tabular}
\end{center}

%-----------------

\SbSbSSCT{Intersection d'une droite et un cercle}{Intersection of a line and a circle}

\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}(-.5,-.5)(5,4.5)
\psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
\pstGeonode(1,3.5){A}(4,1){B}(2,2){C}(1,2){D}
\psline[linecolor=Vert](A)(B)
\pstCircleOA[linecolor=cyan]{C}{D}
\pstInterLC[linecolor=red]{A}{B}{C}{D}{E}{F}
\end{pspicture}
\\ \hline
\BSS{pstInterLC}{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}\AC{F}} \BSI{pstInterLC}{pst-eucl} \\ \hline
\end{tabular}
\end{center}

\bigskip
\begin{center}
	\begin{tabular}{|c|} \hline
\begin{pspicture}(-.5,-.5)(5,4.5)
\psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
\pstGeonode(1,3.5){A}(4,1){B}(2,2){C}
\psline[linecolor=Vert](A)(B)
\pscircle[linestyle=dotted](C){1}
\pstInterLC[linecolor=red,Radius=\pstDistVal{1}]{A}{B}{C}{}{E}{F}
\end{pspicture}
\\ \hline
\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

\end{tabular}
\end{center}


%------------

\SbSbSSCT{Intersection de deux cercles}{Intersection of two circles}


\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}(-.5,-.5)(5,5.5)
\psaxes[ticksize=5,axesstyle=frame](5,5)
\pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
\pstCircleOA[linecolor=Vert]{A}{B}
\pstCircleOA[linecolor=cyan]{C}{D}
\pstInterCC[linecolor=red,PosAngleA=45,PosAngleB=225,]{A}{B}{C}{D}{E}{F}
\end{pspicture}
\\ \hline
\BSS{pstInterCC}[linecolor=red,PosAngleA=45,PosAngleB=225]\\
{\Vert\AC{A}\AC{B}}{\cyan\AC{C}\AC{D}}{\red\AC{E}\AC{F}} \BSI{pstInterCC}{pst-eucl}
\\ \hline
\end{tabular}
\end{center}

\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}(-.5,-.5)(5,5.5)
\psaxes[ticksize=5,axesstyle=frame](5,5)
\pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
\pstInterCC[PosAngleA=135,PosAngleB=135, CodeFig=true, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
\end{pspicture} \\ \hline
CodeFig=true  \\ \hline
\end{tabular}
\end{center}

\begin{tabular}{|c|c|c|} \hline
\begin{pspicture}(-.5,-.5)(5,5.5)
\psaxes[ticksize=5,axesstyle=frame](5,5)
\pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
\pstInterCC[PosAngleA=135,PosAngleB=135, CodeFig=true,CodeFigAarc=false, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(5,5.5)
\psaxes[ticksize=5,axesstyle=frame](5,5)
\pstGeonode(2,3){A}(1,3){B}(3,2){C}(4,1){D}
\pstInterCC[PosAngleA=135,PosAngleB=135,CodeFig=true, CodeFigBarc=false, CodeFigColor=red]{A}{B}{C}{D}{E}{F}
\end{pspicture}
\\ \hline
 CodeFig=true & CodeFig=true \\
 \RDD{CodeFigAarc}=false  \RDI{CodeFigAarc}{pst-eucl} & \RDD{CodeFigBarc}=false  \RDI{CodeFigBarc}{pst-eucl}
\\ \hline
  \blue \dft : CodeFigAarc =true  & { \blue \dft : CodeFigBarc =true  } \\  \hline 
%& \dft : CodeFigAarc =true & CodeFigBarc =true 
%\\ \hline
\end{tabular}

%---------
\SbSbSSCT{Intersection de deux courbes}{Intersection of two  plots}


\psset{unit=.5cm} 
\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}*(-5,-2)(5,6.5)  
\psaxes[xticksize=-1 6,yticksize=-4 4,axesstyle=frame](0,0)(-4,-1)(4,6)
\def \F{x 2 exp neg 5 add }
\def \G{x 2 exp }
\psplot[linecolor=Vert]{-2.5}{2.5}{\F} 
\psplot[linecolor=cyan]{-2.5}{2.5}{\G} 
\pstInterFF[linecolor=red]{\F}{\G}{1}{A} 
\pstInterFF[linecolor=red]{\F}{\G}{-1}{B} 	
\end{pspicture} \\ \hline
\BS{}def {\Vert\BS{}F\AC{x 2 exp neg 5 add}}  \\
\BS{}def {\cyan\BS{}G\AC{x 2 exp}}\\
\BSS{pstInterFF}\AC{{\Vert\BS{}F}}\AC{{\cyan\BS{}G}}\AC{1}{\red\AC{A}} \BSI{pstInterFF}{pst-eucl} \\
\BSS{pstInterFF}\AC{{\Vert\BS{}F}}\AC{{\cyan\BS{}G}}\rnode{D}{\AC{-1}}{\red\AC{B}} \BSI{pstInterFF}{pst-eucl}
\\ \hline
\end{tabular}
\end{center}

\rnode{C}{\psframebox{\TFRGB{point d'intersection le plus proche de}{point of intersection nearest to x=-1}}} \ncdiagg{->}{C}{D}
\psset{unit=1cm}


%--------------------------------------------------
\SbSbSSCT{Intersection d'une droite et d'une courbe}{Intersection of a line and a curve}


\psset{unit=.5cm}  
\begin{center}
\begin{tabular}{|c|} \hline
\begin{pspicture}*(-5,-2)(5,6.5)  
\psaxes[xticksize=-1 6,yticksize=-4 4,axesstyle=frame](0,0)(-4,-1)(4,6)
\pstGeonode(-3,5){A}(3,2){B}
\pstLineAB[linecolor=cyan]{A}{B}	
\def \F{x 2 exp neg 5 add }
\psplot[linecolor=Vert]{-2.5}{2.5}{\F} 
\pstInterFL[linecolor=red]{\F}{A}{B}{1}{C}	
\end{pspicture} 
\\ \hline
{\cyan\BS{pstLineAB}\AC{A}\AC{B}} \\ 
\BS{def} {\Vert\BS{}F\AC{x 2 exp neg 5 add}} \\ 
\BS{pstInterFL}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{1}{\red\AC{C}} \BSI{pstInterFL}{pst-eucl}	
\\ \hline
\end{tabular}
\end{center}

\psset{unit=1cm}
%----------------------------------------------------------------------
\SbSbSSCT{Intersection d'un cercle et d'une courbe}{Intersection of a circle and a curve}
%\verb \pstInterFC %[hpari]{hfi}{hOi}{hAi}{hx0 i}{hMi}


\psset{unit=.5cm}

\begin{center}
\begin{tabular}{|c|} \hline 
\begin{pspicture}*(-5,-5)(5.5,6.5)  
\psaxes[xticksize=-4 6,yticksize=-5 5,axesstyle=frame](0,0)(-5,-4)(5,6)
\pstGeonode[linecolor=cyan](0,0){A}(-3,2){B}
\pstCircleOA[linecolor=cyan]{A}{B}	 
	
\def \F{x 2 exp neg 5 add }
\psplot[linecolor=Vert]{-3}{3}{\F} 
%
\pstInterFC[linecolor=red]{\F}{A}{B}{-1}{C} 
\pstInterFC[linecolor=red]{\F}{A}{B}{1}{D}  
\pstInterFC[linecolor=red]{\F}{A}{B}{-3}{E}	
\end{pspicture}
\\ \hline
\BS{}def {\Vert  \BS{}F\AC{x 2 exp neg 5 add }} : fonction  $5 - x^2$\\
{\cyan\BS{}pstCircleOA\AC{A}\AC{B}}\\
\BSS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{-1}{\red\AC{C}} \BSI{pstInterFC}{pst-eucl}\\
\BS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{1}{\red\AC{D}}\\
\BS{pstInterFC}\AC{{\Vert\BS{}F}}{\cyan\AC{A}\AC{B}}\AC{3}{\red\AC{E}} \\
\BS{pstInterFC}{\blue\AC{{\Vert\BS{}F}}}{\cyan\AC{A}\AC{B}}{\red\AC{1}\AC{D}}\\
\BS{pstInterFC}{\blue\AC{{\Vert\BS{}F}}}{\cyan\AC{A}\AC{B}}{\red\AC{3}\AC{E}}
\\ \hline
\end{tabular}
\end{center}
\psset{unit=1cm}