Debian Codegraph @

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

raw
1 % ---------------------------------------------------------------------------
2 % The chrysanteme curve is defined by the equation:
3 % r=5(1+sin(11a/5)-4sin^4(17a/3)*sin^8(2cos(3a)-14a)).
4 % ---------------------------------------------------------------------------
5 \input preamble.tex
6
7 \Defnum(\n,0)
8 \newcount\m
9 \newdimen\a
10 \newdimen\x
11 \newdimen\y
12 \newdimen\z
13
14 % ---------------------------------------------------------------------------
15 \begin{document}
16 \unitlength0.88cm
17
18 \begin{center}
19 {\Huge \bf{The Chrysanteme Curve}}
20 \bigskip
21
22 \begin{lapdf}(18,20)(-9,-10)
23 \def\Px(#1,#2){\Dset(\a,#1) \x=2.2\a \y=5.667\a \z=3\a \a=14\a
24 \Sin(\Np\x,#2) \Dadd(#2,1) #2=1.25#2 \Sin(\Np\y,\y)
25 \Cos(\Np\z,\z) \Sub(\z,\a) \Add(\z,\z) \Sin(\Np\z,\z)
26 \Dmul(\z,\z) \Dmul(\y,\z) \Pot(\Np\y,4,\y) \Sub(#2,\y) #2=4#2}
27
28 \Whilenum{\n<24}{%
29 \m=\n \Add(\m,1) \Nextcol(0, 23) \Pplot(100)(\n,\m) \Stroke \Add(\n,1)}
30 \end{lapdf}
31
32 $r(\phi)=5(1+\sin(11\phi/5)-4\sin^4(17\phi/3)\sin^8(2\cos(3\phi)-14\phi))$
33 \end{center}
34 \end{document}