A survey of selected solutions to problems of refraction and diffraction of light waves and sound waves and the analogies of these problems to water waves