Level curves - Your turn

Level curves - Your turn#

The temperature in the interior of a rectangular plate is given by the following function of \(x\) and \(y\):

\[ T(x,y) = \dfrac{\sin(\pi x) \sinh(\pi y) + \sin(\pi(x - 2)) \sinh(\pi (y - 2))}{\sinh(2 \pi)} \quad \text{for}\ 0 \le x,y \le 2 \]

Plot the temperature as a function of \(x\) and \(y\) in both 3D (surface + contour) and 2D (contour only), as we did in the demo. Use an increment of \(0.05\) and display \(30\) level curves. In both figures, add a colorbar and labels.

# 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!