- Name: Darsh Ranjan
- Email: my department username is "dranjan".
My email address is my username plus "@math.berkeley.edu".
- Office: 789 Evans Hall
- Office hours: Monday 10:30 AM - 11:30 AM,
Thursday 1:30 PM - 2:30 PM.
Main course page
Midterm 1 review problems
Final exam review problems
These may differ slightly from the code presented in class. Also, probably all of
these have significant room for improvement.
- Random rotation in Matlab
- Plotting the unit ball for the p-norm in two dimensions
- Very basic demo of sparse and full matrices
- Evaluating all the Legendre polynomials
up to a given degree at given points
Fitting a line to a bunch of points,
three different ways.
Unfortunately, you will not be
able to run this without Matlab's
optimization toolbox. I apologize for this;
I did not realize this requirement when I wrote this demo,
since our department's installation of Matlab (that
grad students use) does have the optimization
toolbox. Alternatively, you can implement your own linear
program solver and use that instead of matlab's "linprog",
but that is beyond the scope of this course.
Here are example figures obtained by running the following command:
- Our test functions for
programming assignment #1. The bounds for the graphs are the intervals
we tested your code on.
- Programming assignment #2 reference implementations: