Lateral velocity variation v=v(x) has not been included in the program, but it is not difficult to install. It enters in two places. It enters first in equation (50). If the wavefield is such that kx is small enough, then equation (50) is the only place it is needed. Second, it enters in the tridiagonal coefficients through the v in equation (46). The so-called thin-lens approximation of optics seems to amount to including the equation (50) part only. An example of lateral velocity variation
is in Figure 7.
Figure 7 Make changes to the program to include a thin-lens term with a lateral velocity change of 40% across the frame produced by a constant slowness gradient. Identify other parts of the program which are affected by lateral velocity variation. You need not make these other changes. Why are they expected to be small? (Movie)