For a film loop to make sense to a viewer, the subject of the movie must be periodic, and organized so that the last frame leads naturally into the first. In the movie created by wavemovie() there is a parameter lambda that controls the basic repetition rate of wave pulses fired onto the screen from the top. When a wavelet travels one-quarter of the way down the frame, another is sent in. This is defined by the line
Take any point in (x,z)-space.
The signal there will be a superposition of sinusoids
of various frequencies, .We can choose what frequencies
we will use in the calculation
and what amplitudes and phases we will attach to the initial conditions
at those frequencies.
Here we will simply take uniformly spaced sinusoids of unit amplitude
and no phase.
The nw frequencies are
,
,...,
nw
.The lowest frequency dw =
must be inversely proportional to the wavelength
lambda
Finally, the time duration of the film loop must equal the period of the lowest-frequency sinusoid