Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Math 480 - Homework 4: Due 6pm on April 29, 2016
There are several problems and all have equal weights.
Solve each problem using Sage unless otherwise indicated. In particular, if there is some calculus question, which you could easily do by hand or in your head, you should still show exactly how to solve it using Sage if possible. Of course, do think with your brain!
For any part that asks for a symbolic result, use show(...)
, so the output is easier for us to read.
Problem 1 -- defining and evaluating a function:
Define in Sage .
Compute symbolically (exactly).
Compute numerically (so a decimal expansion).
Plot from to .
Problem 2 -- finding zeros numerically:
Let
Draw a plot of on the interval .
Differentiate
Integrate
Find all the zeros of numerically.
Problem 3 -- The Cauchy Distribution
Let
Plot and find the area under the curve of for the following values of and on the interval
Integrate from to using the dummy variable as in .
Plot the resulting function from 3 for .
Problem 4 -- a function with no elementary antiderivative:
Let
Draw a plot of on the interval .
Differentiate
Integrate
Problem 5: Limits
Compute
Use Sage to verify that strange and amazing fact .
Problem 6: Taylor Series
Let
Find the 3rd degree taylor series, , of where
Plot the 10th degree taylor series where alongside
Plot on the interval $x=[\pi, 3\pi
Problem 7 - Gradient Vector Field:
Compute the gradient of .
Plot the 2-dimensiona vector field defined by the gradient of in the rectangle .
Problem 8 - Symbolic Sums:
Compute .
Compute .
Compute both symbolically (in terms of the Riemann Zeta function) and numerically.
Compute .
Compute .
Problem 9 -- Unit Conversion:
Use Sage's units functionality (written by a UW undergrad -- David Ackerman!)
Convert 68 degrees Fahrenheit to Celcius. Hint: use
68*units.temperature.fahrenheit
to define fahrenheit.Convert 15 milliseconds to hours.
Convert 2016 degrees kelvins to degrees Fahrenheit.
Convert 9.8 meters per second squared to feet per second squared.
Problem 10 - 3d Plotting:
Draw a 3d plot of a torus.
Draw a single 3d plot the has the five regular polytopes in it: tetrahedron, cube, octahedron, dodecahedron, icosahedron. All five must be visible.
Draw a 3d plot of the "Mexican hat function" (see, e.g., https://en.wikipedia.org/wiki/Mexican_hat_wavelet). [Hint: you have to make a choice of parameter so that it looks like Mexican hat.]