home *** CD-ROM | disk | FTP | other *** search
- .MCD 20000 0
- .CMD PLOTFORMAT logs=0,0 subdivs=1,1 size=5,15 type=l
- .CMD FORMAT rd=d ct=10 im=i et=3 zt=15 pr=3 mass length time charge
- .CMD SET ORIGIN 0
- .CMD SET TOL 0.001000
- .CMD MARGIN 0
- .CMD LINELENGTH 78
- .CMD SET PRNCOLWIDTH 8
- .CMD SET PRNPRECISION 4
- .TXT 1 30 1 18
- a1,18,16,17
- LISSAJOUS FIGURE
- .EQN 1 40 1 9
- n1:4
- .TXT 1 -66 1 17
- a1,17,15,16
- Parameters --->
- .TXT 0 17 1 13
- a1,13,11,12
- Resolution:
- .EQN 0 13 1 10
- N:100
- .TXT 0 12 1 24
- a1,24,22,23
- Lissajous frequencies:
- .EQN 0 24 1 9
- n2:5
- .EQN 2 -65 1 16
- j:1;N+1
- .EQN 0 19 3 21
- x[j:sin(n1*2*π*j/N)
- .EQN 0 26 3 21
- y[j:cos(n2*2*π*j/N)
- .EQN 4 -48 15 31
- 1&-1&x[j{1,1,13,26,l}@1&-1&y[j
- .TXT 1 35 12 37
- a12,37,35,371
- To see different Lissajous figures,
- change the values of n1 and n2. For
- the most interesting results, use
- small integers or consecutive
- integers (for example, 2 and 5, or
- 24 and 25). Also, n1 and n2 should
- have no common factors.
- For smoother curves, increase the
- resolution. (The higher the
- resolution, the longer it takes to
- calculate and plot the curve.)
-