Surfaces in 3D - Your turn

Surfaces in 3D - Your turn#

Plot the function

\[ z(x,y) = \left( \dfrac{\sin(\pi x)}{\pi x + 10^{-16}} \right)^2 \left( \dfrac{\sin(\pi y)}{\pi y + 10^{-16}} \right)^2 \]

for \(x\) and \(y\) both ranging between \(-\pi\) and \(\pi\). Use an increment of \(0.1\). Add labels and a title.

Note: The plot you obtain represents a diffraction pattern produced by a small rectangular aperture illuminated by a monochromatic light beam. The function \(z\) represents the intensity of the light behind the aperture.

Hint: Try to re-define the limits on \(z\) to go from \(0\) to \(0.3\) to better resolve surface features, and/or choose an appropriate colormap!

# TODO: Write your solution below

Exporting your work#

When you’re ready, the easiest way to export the notebook is to File > Print it and save it as a PDF. Remove any excessively long, unrelated outputs first by clicking the arrow → next to the output box and then Show/hide output. Obviously don’t obscure any necessary output or graphs!