Debian Codegraph @

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

raw
1 \input preamble.tex
2
3 \newdimen\x
4 \newdimen\y
5
6 % ---------------------------------------------------------------------------
7 \begin{document}
8 \begin{center}
9 {\huge \bf{Trigonometric Functions}}
10 \bigskip
11
12 \begin{lapdf}(12,10.3)(-6,-5)
13 \Lingrid(10)(1,3)(-6,6)(-5,5)
14 \Red
15 \def\Fx(#1,#2){\Sin(#1,#2)}
16 \Fplot(50)(-6,6) \Stroke
17 \Green
18 \def\Fx(#1,#2){\Cos(#1,#2)}
19 \Fplot(50)(-6,6) \Stroke
20 \Blue
21 \def\Fx(#1,#2){\Tan(#1,#2)}
22 \Fplot(50)(-6,-4.91) \Stroke
23 \Fplot(50)(-4.515,-1.768) \Stroke
24 \Fplot(50)(-1.373,1.373) \Stroke
25 \Fplot(50)(1.768,4.515) \Stroke
26 \Fplot(50)(4.91,6) \Stroke
27 \end{lapdf}
28 \bigskip
29
30 {\huge \bf{Arcus Functions}}
31
32 \begin{lapdf}(12,7.3)(-6,-3)
33 \Lingrid(10)(1,3)(-6,6)(-3,4)
34 \Red
35 \def\Fx(#1,#2){\Asin(#1,#2)}
36 \Fplot(50)(-1,1) \Stroke
37 \Green
38 \def\Fx(#1,#2){\Acos(#1,#2)}
39 \Fplot(50)(-1,1) \Stroke
40 \Blue
41 \def\Fx(#1,#2){\Atan(#1,#2)}
42 \Fplot(50)(-6,6) \Stroke
43 \end{lapdf}
44
45 \newpage
46
47 {\huge \bf{Hyperbolic Functions}}
48
49 \begin{lapdf}(12,10.3)(-6,-5)
50 \Lingrid(10)(1,3)(-6,6)(-5,5)
51 \Red
52 \def\Fx(#1,#2){\Sinh(#1,#2)}
53 \Fplot(50)(-2.31,2.31) \Stroke
54 \Green
55 \def\Fx(#1,#2){\Cosh(#1,#2)}
56 \Fplot(50)(-2.3,2.3) \Stroke
57 \Blue
58 \def\Fx(#1,#2){\Tanh(#1,#2)}
59 \Fplot(50)(-6,6) \Stroke
60 \end{lapdf}
61 \bigskip
62
63 {\huge \bf{Area Functions}}
64
65 \begin{lapdf}(12,10.3)(-6,-5)
66 \Lingrid(10)(1,3)(-6,6)(-5,5)
67 \Red
68 \def\Fx(#1,#2){\Asinh(#1,#2)}
69 \Fplot(50)(-6,6) \Stroke
70 \Green
71 \def\Fx(#1,#2){\Acosh(#1,#2)}
72 \Fplot(80)(1,6) \Stroke
73 \def\Fx(#1,#2){\Acosh(#1,#2) #2=-#2}
74 \Fplot(80)(1,6) \Stroke
75 \Blue
76 \def\Fx(#1,#2){\Atanh(#1,#2)}
77 \Fplot(80)(-1,1) \Stroke
78 \end{lapdf}
79
80 \newpage
81
82 {\huge \bf{Log and Exponential Functions}}
83
84 \begin{lapdf}(10,10.3)(-3,-3)
85 \Lingrid(10)(1,3)(-3,7)(-3,7)
86 \Red
87 \def\Fx(#1,#2){\Ln(#1,#2)}
88 \Fplot(80)(0.05,7) \Stroke
89 \Green
90 \def\Fx(#1,#2){\Log(1.5,#1,#2)}
91 \Fplot(80)(0.3,7) \Stroke
92 \Blue
93 \def\Fx(#1,#2){\Exp(#1,#2)}
94 \Fplot(50)(-3,1.946) \Stroke
95 \Cyan
96 \def\Fx(#1,#2){\Pow(1.5,#1,#2)}
97 \Fplot(50)(-3,4.8) \Stroke
98 \end{lapdf}
99 \bigskip
100
101 {\huge \bf{Square and Square Root Functions}}
102
103 \begin{lapdf}(10,10.3)(-3,-3)
104 \Lingrid(10)(1,3)(-3,7)(-3,7)
105 \Red
106 \def\Fx(#1,#2){\Dset(\x,#1) \Dmul(\x,\x) #2=\x}
107 \Fplot(100)(-2.64,2.64) \Stroke
108 \Green
109 \def\Fx(#1,#2){\Sqrt(#1,#2)}
110 \Fplot(100)(0,7) \Stroke
111 \def\Fx(#1,#2){\Sqrt(#1,#2) #2=-#2}
112 \Fplot(100)(0,7) \Stroke
113 \end{lapdf}
114
115 \newpage
116
117 {\huge \bf{Power and Root Functions}}
118 \bigskip
119
120 \begin{lapdf}(18,22)(0,0)
121 \Lingrid(10)(1,3)(0,18)(0,22)
122 \Rect(0,0,18,22)
123 \Setclip
124 \Stepcol(0,23,2)
125 \def\Fx(#1,#2){\Pow(#1,1.0,#2)}
126 \Fplot(100)(0,18) \Stroke
127 \Stepcol(0,23,2)
128 \def\Fx(#1,#2){\Pow(#1,1.1,#2)}
129 \Fplot(100)(0,16.6) \Stroke
130 \Stepcol(0,23,2)
131 \def\Fx(#1,#2){\Pow(#1,1.2,#2)}
132 \Fplot(100)(0,13.2) \Stroke
133 \Stepcol(0,23,2)
134 \def\Fx(#1,#2){\Pow(#1,1.3,#2)}
135 \Fplot(100)(0,10.8) \Stroke
136 \Stepcol(0,23,2)
137 \def\Fx(#1,#2){\Pow(#1,1.4,#2)}
138 \Fplot(100)(0,9.2) \Stroke
139 \Stepcol(0,23,2)
140 \def\Fx(#1,#2){\Pow(#1,1.5,#2)}
141 \Fplot(100)(0,7.9) \Stroke
142 \Stepcol(0,23,2)
143 \def\Fx(#1,#2){\Pow(#1,1.7,#2)}
144 \Fplot(100)(0,6.3) \Stroke
145 \Stepcol(0,23,2)
146 \def\Fx(#1,#2){\Pow(#1,2.0,#2)}
147 \Fplot(100)(0,4.8) \Stroke
148 \Stepcol(0,23,2)
149 \def\Fx(#1,#2){\Pow(#1,2.5,#2)}
150 \Fplot(100)(0,3.5) \Stroke
151 \Stepcol(0,23,2)
152 \def\Fx(#1,#2){\Pow(#1,3.0,#2)}
153 \Fplot(50)(0,2.8) \Stroke
154 \Stepcol(0,23,2)
155 \def\Fx(#1,#2){\Pow(#1,3.5,#2)}
156 \Fplot(30)(0,2.45) \Stroke
157 \Stepcol(0,23,2)
158 \def\Fx(#1,#2){\Pow(#1,4.0,#2)}
159 \Fplot(23)(0,2.2) \Stroke
160 \Stepcol(0,23,2)
161 \def\Fx(#1,#2){\Root(#1,1.1,#2)}
162 \Fplot(300)(0,18) \Stroke
163 \Stepcol(0,23,2)
164 \def\Fx(#1,#2){\Root(#1,1.2,#2)}
165 \Fplot(300)(0,18) \Stroke
166 \Stepcol(0,23,2)
167 \def\Fx(#1,#2){\Root(#1,1.3,#2)}
168 \Fplot(300)(0,18) \Stroke
169 \Stepcol(0,23,2)
170 \def\Fx(#1,#2){\Root(#1,1.4,#2)}
171 \Fplot(300)(0,18) \Stroke
172 \Stepcol(0,23,2)
173 \def\Fx(#1,#2){\Root(#1,1.5,#2)}
174 \Fplot(300)(0,18) \Stroke
175 \Stepcol(0,23,2)
176 \def\Fx(#1,#2){\Root(#1,1.7,#2)}
177 \Fplot(300)(0,18) \Stroke
178 \Stepcol(0,23,2)
179 \def\Fx(#1,#2){\Root(#1,2.0,#2)}
180 \Fplot(300)(0,18) \Stroke
181 \Stepcol(0,23,2)
182 \def\Fx(#1,#2){\Root(#1,2.5,#2)}
183 \Fplot(300)(0,18) \Stroke
184 \Stepcol(0,23,2)
185 \def\Fx(#1,#2){\Root(#1,3.0,#2)}
186 \Fplot(300)(0,18) \Stroke
187 \Stepcol(0,23,2)
188 \def\Fx(#1,#2){\Root(#1,3.5,#2)}
189 \Fplot(300)(0,18) \Stroke
190 \Stepcol(0,23,2)
191 \def\Fx(#1,#2){\Root(#1,4.0,#2)}
192 \Fplot(300)(0,18) \Stroke
193 \end{lapdf}
194
195 \newpage
196
197 {\huge \bf{Hyperbolas}}
198
199 \begin{lapdf}(10,10.3)(-5,-5)
200 \Lingrid(10)(1,3)(-5,5)(-5,5)
201 \Red
202 \def\Fx(#1,#2){\Dset(\x,#1) \Dset(\y,1) \Ddiv(\y,\x) #2=\y}
203 \Fplot(50)(-5,-0.2) \Stroke
204 \Fplot(50)(0.2,5) \Stroke
205 \Green
206 \def\Fx(#1,#2){\Dset(\x,#1) \Dmul(\x,\x) \Dset(\y,1) \Ddiv(\y,\x) #2=\y}
207 \Fplot(50)(-5,-0.447) \Stroke
208 \Fplot(50)(0.447,5) \Stroke
209 \end{lapdf}
210 \bigskip
211
212 {\huge \bf{Other Functions}}
213
214 \begin{lapdf}(10,10.3)(-5,-5)
215 \Lingrid(10)(1,3)(-5,5)(-5,5)
216 \Red
217 \def\Fx(#1,#2){\Dset(\x,#1) \y=\x \x=2.5\x \Sin(\Np\x,#2) \Ddiv(#2,\y) #2=2#2}
218 \Fplot(100)(-5,5) \Stroke
219 \Green
220 \def\Fx(#1,#2){\Dset(\x,#1) \Dmul(\x,\x) \Dadd(\x,1) \Dset(\y,5) \Ddiv(\y,\x) #2=\y}
221 \Fplot(100)(-5,5) \Stroke
222 \Blue
223 \def\Fx(#1,#2){\Dset(\x,#1) \y=9\x \Dmul(\x,\x) \Dadd(\x,1) \Ddiv(\y,\x) #2=\y}
224 \Fplot(100)(-5,5) \Stroke
225 \end{lapdf}
226
227 \newpage
228
229 {\huge \bf{Damped Oszillator}}
230
231 \begin{lapdf}(14,11.3)(-2,-5)
232 \Lingrid(10)(1,3)(-2,12)(-5,6)
233 \Red
234 \def\Fx(#1,#2){\Dset(#2,#1) #2=3#2 \Sin(\Np#2,#2)\Dset(\x,#1) \x=-0.2\x \Exp(\Np\x,\x) \Dmul(#2,\x) #2=4#2}
235 \Fplot(300)(-2,12) \Stroke
236 \Dgray
237 \Dash(1)
238 \def\Fx(#1,#2){\Dset(#2,#1) #2=-0.2#2 \Exp(\Np#2,#2) #2=4#2}
239 \Fplot(50)(-1.6,12) \Stroke
240 \def\Fx(#1,#2){\Dset(#2,#1) #2=-0.2#2 \Exp(\Np#2,#2) #2=-4#2}
241 \Fplot(50)(-0.6,12) \Stroke
242 \end{lapdf}
243 \bigskip
244
245 {\huge \bf{Function, Derivatives \& Asymptotes}}
246
247 \begin{lapdf}(12,10.3)(-5,-5)
248 \Lingrid(10)(1,3)(-5,7)(-5,5)
249 \Red
250 \def\Fx(#1,#2){\Dset(\x,#1) \Dsub(\x,2) \y=#1\x \Dsub(\y,3) \y=0.2\y \Dset(#2,1) \Ddiv(#2,\x) \Add(#2,\y)}
251 \Fplot(100)(-4.47,1.765) \Stroke
252 \Fplot(100)(2.18,6.28) \Stroke
253 \Green
254 \def\Fx(#1,#2){\Dset(#2,#1) \Dsub(#2,1) \x=#2 \Dsub(\x,1) \Dmul(\x,\x) #2=0.4#2 \Dset(\y,1) \Ddiv(\y,\x) \Sub(#2,\y)}
255 \Fplot(100)(-5,1.56) \Stroke
256 \Fplot(100)(2.422,7) \Stroke
257 \Blue
258 \def\Fx(#1,#2){\Dset(#2,2) \Dset(\x,#1) \Dsub(\x,2) \Pot(\Np\x,3,\x) \Ddiv(#2,\x) \Dadd(#2,0.4)}
259 \Fplot(100)(-5,1.282) \Stroke
260 \Fplot(100)(2.758,7) \Stroke
261 \Black
262 \Setwidth(0.01)
263 \def\Fx(#1,#2){\Dset(#2,#1) \Dadd(#2,1) \Dset(\x,#1) \Dsub(\x,3) \Dmul(#2,\x) #2=0.2#2}
264 \Fplot(100)(-4.4,6.43) \Stroke
265 \Dash(1)
266 \Line(2,-5)(2,5) \Stroke
267 \Line(-5,0.4)(7,0.4) \Stroke
268 \Line(-5,-2.4)(7,2.4) \Stroke
269 \end{lapdf}
270 \end{center}
271 \end{document}