Debian Codegraph @

texmf-dist/doc/latex/lapdf/tplot.tex

raw
1 \input preamble.tex
2
3 \newdimen\a
4 \newdimen\b
5 \newdimen\c
6 \newdimen\t
7 \newdimen\x
8 \newdimen\y
9
10 % ---------------------------------------------------------------------------
11 \begin{document}
12 \begin{center}
13 {\Huge \bf{Parametric I}}
14 \bigskip
15
16 \begin{lapdf}(10,11)(-5,-6)
17 \Lingrid(10)(0,3)(-5,5)(-5,5)
18 \Red
19 \def\Tx(#1,#2){\Sin(#1,#2) #2=3#2}
20 \def\Ty(#1,#2){\Cos(#1,#2) #2=5#2}
21 \Tplot(100)(0,6.2832) \Stroke
22 \Green
23 \def\Tx(#1,#2){\Sin(#1,#2) #2=5#2}
24 \Tplot(100)(0,6.2832) \Stroke
25 \Blue
26 \def\Ty(#1,#2){\Cos(#1,#2) #2=3#2}
27 \Tplot(100)(0,6.2832) \Stroke
28 \end{lapdf}
29 \bigskip
30
31 \begin{lapdf}(10,10)(-5,-5)
32 \Lingrid(10)(0,3)(-5,5)(-5,5)
33 \Red
34 \def\Tx(#1,#2){\Dset(\x,#1) \Dmul(\x,\x) #2=\x}
35 \def\Ty(#1,#2){\Dset(\t,#1) \y=\t \Dmul(\y,\y) \Dsub(\y,3) \Dmul(\y,\t) #2=\y}
36 \Tplot(50)(-2.26,2.26) \Stroke
37 \Blue
38 \def\Tx(#1,#2){\Sin(#1,#2) #2=5#2}
39 \def\Ty(#1,#2){\Dset(\t,#1) \Mul(\t,2) \Sin(\Np\t,#2) #2=5#2}
40 \Tplot(100)(0,6.2832) \Stroke
41 \end{lapdf}
42
43 \newpage
44
45 {\Huge \bf{Parametric II}}
46 \bigskip
47
48 \begin{lapdf}(10,11)(-5,-6)
49 \Lingrid(10)(0,3)(-5,5)(-5,5)
50 \Red
51 \def\Tx(#1,#2){\Dset(\t,#1) \Cos(\Np\t,\x) \Div(\x,5) \Dmul(\x,\t) #2=\x}
52 \def\Ty(#1,#2){\Dset(\t,#1) \Sin(\Np\t,\y) \Div(\y,5) \Dmul(\y,\t) #2=\y}
53 \Tplot(300)(0,25.13) \Stroke
54 \end{lapdf}
55 \bigskip
56
57 \begin{lapdf}(10,10)(-5,-5)
58 \Lingrid(10)(0,3)(-5,5)(-5,5)
59 \Blue
60 \def\Tx(#1,#2){\Dset(\x,#1) \Mul(\x,3) \Cos(\Np\x,#2) #2=5#2}
61 \def\Ty(#1,#2){\Dset(\y,#1) \Mul(\y,5) \Sin(\Np\y,#2) #2=5#2}
62 \Tplot(300)(0,6.2832) \Stroke
63 \end{lapdf}
64
65 \newpage
66
67 {\Huge \bf{Parametric III}}
68 \bigskip
69
70 \begin{lapdf}(16,16)(-8,-8)
71 \Lingrid(10)(1,3)(-7,7)(-7,7)
72 \Red
73 \def\Tx(#1,#2){\Cos(#1,\x) \Dadd(\x,1) \Sin(#1,#2) \Dmul(#2,\x) #2=-5#2}
74 \def\Ty(#1,#2){\Sin(#1,\y) \Dadd(\y,1) \Cos(#1,#2) \Dmul(#2,\y) #2=-5#2}
75 \Tplot(200)(0,6.2832) \Stroke
76 \Dash(1)
77 \Blue
78 \Line(-7,-7)(7,7) \Stroke
79 \end{lapdf}
80 \bigskip
81
82 \begin{lapdf}(10,6)(-5,-3)
83 \Lingrid(10)(0,2)(-5,5)(-3,3)
84 \Red
85 \def\Tx(#1,#2){\Cos(#1,#2) #2=5#2}
86 \def\Ty(#1,#2){\Tx(#1,#2) \Sin(#1,\x) \Dmul(#2,\x)}
87 \Tplot(250)(0,6.2832) \Stroke
88 \Blue
89 \def\Tx(#1,#2){\Cos(#1,#2) \Sin(#1,\x) \Dmul(\x,\x) \Dadd(\x,1) \Ddiv(#2,\x) #2=5#2}
90 \def\Ty(#1,#2){\Tx(#1,#2) \Sin(#1,\x) \Dmul(#2,\x)}
91 \Tplot(250)(0,6.2832) \Stroke
92 \end{lapdf}
93
94 \newpage
95
96 {\Huge \bf{Parametric IV}}
97 \bigskip
98
99 \begin{lapdf}(10,11)(-5,-6)
100 \Lingrid(10)(0,1)(-5,5)(-5,5)
101 \def\Tx(#1,#2){\Dset(\x,#1) \a=3\x \b=7\x \c=17\x \Cos(\Np\a,#2)
102 \Cos(\Np\b,\b) \Div(\b,2) \Sin(\Np\c,\c) \Div(\c,3) \Add(#2,\b) \Add(#2,\c) #2=3#2}
103 \def\Ty(#1,#2){\Dset(\x,#1) \a=3\x \b=7\x \c=17\x \Sin(\Np\a,#2)
104 \Sin(\Np\b,\b) \Div(\b,2) \Cos(\Np\c,\c) \Div(\c,3) \Add(#2,\b) \Add(#2,\c) #2=3#2}
105 \Red
106 \Tplot(150)(0.0000,1.5708)\Stroke
107 \Green
108 \Tplot(150)(1.5708,3.1416)\Stroke
109 \Blue
110 \Tplot(150)(3.1416,4.7124)\Stroke
111 \Cyan
112 \Tplot(150)(4.7124,6.2832)\Stroke
113 \end{lapdf}
114 \bigskip
115
116 \begin{lapdf}(10,11)(-5,-5)
117 \Lingrid(10)(0,1)(-5,5)(-5,5)
118 \def\Tx(#1,#2){\Dset(\x,#1) \a=\x \b=7\x \c=17\x \Cos(\Np\a,#2)
119 \Cos(\Np\b,\b) \Div(\b,2) \Sin(\Np\c,\c) \Div(\c,3) \Add(#2,\b) \Add(#2,\c) #2=3#2}
120 \def\Ty(#1,#2){\Dset(\x,#1) \a=\x \b=7\x \c=17\x \Sin(\Np\a,#2)
121 \Sin(\Np\b,\b) \Div(\b,2) \Cos(\Np\c,\c) \Div(\c,3) \Add(#2,\b) \Add(#2,\c) #2=3#2}
122 \Red
123 \Tplot(150)(0.0000,1.5708) \Stroke
124 \Green
125 \Tplot(150)(1.5708,3.1416) \Stroke
126 \Blue
127 \Tplot(150)(3.1416,4.7124) \Stroke
128 \Cyan
129 \Tplot(150)(4.7124,6.2832) \Stroke
130 \end{lapdf}
131
132 \end{center}
133 \end{document}