© 2001 by CRC Press LLC
the program Gauss to find these MxN W’s. Compare the resulting W
distribution with those obtained by the relaxation method shown in
Figures 5 and 6 for a = 30 and b = 20.
12. Same as Problem 11 except for the case a = b = 20 and for comparing
with Figure 7.
13. Solve the warping problem by Mathematica.
WAVEPDE
1. For the string problem analyzed in the Sample Application, modify the
program slightly so that the times required for the string to have the
magnitudes of its maximum displacements reduced to 0.8, 0.6, 0.4, and
0.2, and the corresponding deflected shapes can be printed.
2. Rearrange the subprogram FUNCTION F in the program WavePDE to
consider the case of an initial, upward lifting the mid-third (8≤x≤16 cm)
of the string by 1 cm. Rerun the program using the same input data as in
the Sample Application.
3. Consider a string which is composed of two different materials even
though it is subjected to a uniform tension T so that the left and right one-
thirds (i.e., , 0≤x≤8 cm and 24≤x≤32 cm, respectively) of the string has
a wave velocity a = 80 cm/sec while its mid-third (i.e., 8≤x≤16 cm) has
a wave velocity a = 90 cm/sec. Modify and then rerun program WavePDE
using the other input same as in the Sample Application.
4. A tightened string of length L equal to 1 ft is lifted as shown in 15 and
is released with a velocity distribution v = y(t = 0,x)/t = 2sinx/L in
ft/sec. If the constant T/m appearing in Equation 2 is equal to 8,100
ft
2
/sec
2
, use a time increment t = 0.0005 sec and a space increment x =
0.1L and apply Equation 7 to find the y values at t = 0.001 sec and for
the stations x
2
and x
3
.
5. In approximating Equation 1 by finite differences, we may keep the same
approach for
2
u/t
2
as in deriving Equation 7 but to apply the second
central-difference formula for
2
u/t
2
not at t = t
i
but at t = t
i + 1
. The
resulting equation, for C = (at/x)
2
, is:
Derive a matrix equation for solving the unknowns u
j
for j = 1,2,…,N–1,
at t = t
i + 1
. Note that the boundary conditions are u
i + 1,0
= u
i + 1,N
= 0. Write
a program WavePDE.G which uses the Gaussian Elimination method to
solve this matrix equation and run it for the Sample problem to compare
the results.
6. Change the MATLAB m file WavePDE to solve Problem 4.
7. Apply Mathematica to solve Problem 4.
−++
()
−=−+
+− + ++ −
Cu C u Cu u u
ij ij ij ij ij11 1 11 1
22
,,,,,