

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CMSC/AMSC 460 Fall 2007 Homework 7 Due Tuesday, December 11, before class begins 25 points
The Problem we discussed on the first day of class: (Kahaner, Moler, and Nash, Problem 8-15)
The speed of sound in ocean water depends on
These vary with depth in complicated ways.
Let z be the depth (in feet) under the ocean surface. (The z axis points downward!) Someone has measured these values for c(z), the speed of sound (in ft/sec) at depth z:
c(0) = 5042 c(500) = 4995 c(1000) = 4948 c(1500) = 4887 c(2000) = 4868 c(2500) = 4863 c(3000) = 4865 c(3500) = 4869 c(4000) = 4875 c(5000) = 4875 c(6000) = 4887 c(7000) = 4905 c(8000) = 4918 c(9000) = 4933 c(10000) = 4949 c(11000) = 4973 c(12000) = 4991
Since the speed of sound varies with depth, sound rays travel in curved paths. (It’s like the refraction of light when you look into a fishbowl.)
We make a mathematical model for the paths using Snell’s Law. Suppose we broadcast a sound from a point x = 0, z = z 0 and let z(x) be the depth of the ray when it is a horizontal distance x from the source.
Let θ(x) denote the angle between the tangent to z(x) and the horizontal axis:
tan θ(x) =
dz dx
Snell’s Law says cos θ c(z)
= a
where a is a constant.
Putting all of this information together by differentiating these equations, we can obtain the model
d^2 z dx^2
c′(z) a^2 c(z)^3
a^2 =
cos θ(0) c(z 0 )
z(0) = z 0 , dz dx
(0) = tan θ 0.
a) (10) Use ode45 to trace z for the ray beginning at z 0 = 2000 ft and θ(0) = 5. 4 o.
b) (5) Now suppose that a sound source at a depth of 2000 ft transmits to a receiver ˆx =24 miles away, at a depth of 3000 ft. Write a Matlab function depth(theta) that traces the ray with initial angle theta and z 0 = 2000 ft, and returns the value z(ˆx) − 3000. Print a table of values of this function for theta in the range -10 to 10 degrees.
c) (10) Use fzero with starting values obtained from part b to find 4 rays with angles between − 10 o^ and 10o^ that pass through the receiver.