====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:spring-2015:math445:lab10 [2015/04/08 13:41] gibson [Problem 5: mystery plot] |
gibson:teaching:spring-2015:math445:lab10 [2015/04/08 19:27] (current) gibson [Problem 5: quiver plot] |
||
---|---|---|---|
Line 70: | Line 70: | ||
**(a)** Reproduce the above surface plot in Matlab. | **(a)** Reproduce the above surface plot in Matlab. | ||
- | **(b)** In a gentle rainstorm, water will flow down the mountains in the direction of steepest descent, i.e. along the gradient of $f(x,y)$. Compute the gradient, then make an $x,y$ plot that shows contours of the mountain height $f$ and the direction of flow of rainwater. | + | **(b)** In a gentle rainstorm, water will flow down the mountains in the direction of steepest descent, i.e. along the negative of the gradient of $f$. Find the gradient of $f$ using elementary calculus, then make an $x,y$ plot with both contours of the mountain height $f$ and a quiver plot showing the direction of flow of rainwater. |
===== Bonus ===== | ===== Bonus ===== | ||
Line 78: | Line 78: | ||
Attribution: This lab is adapted from Prof.Mark Lyon's Math 445 Advanced Graphics lab, which is adapted from Octave demos at [[http://yapso.sourceforge.net/demo/demo.html]]. | Attribution: This lab is adapted from Prof.Mark Lyon's Math 445 Advanced Graphics lab, which is adapted from Octave demos at [[http://yapso.sourceforge.net/demo/demo.html]]. | ||
- | **Note:** this lab is not over, further problems will be posted by Thursday. | + |