
| General
Course Information |
| Course
Content |
| Required
Background |
| Software |
| Textbooks |
| Required
Work |
| Scientific
Computing Minor |
| Grading |
| Detailed Course Schedule |
Software
I am appalled at the high
price of textbooks, and this has complicated my search for a book that
serves both
for teaching the | Date |
Handouts |
Programs
discussed in the lectures |
Homework |
| September 8 |
Lecture 1:
MATLAB Basics, Plotting Lecture 2: Floating Point Arithmetic |
M-file script for drawing a
sphere sphere.m |
Assignment
0: Due immediately Assignment 1: Due Thursday, September 17. Assignment 1 Solutions. |
| September 15 |
Lecture 3:
Branching and Looping |
The MATLAB for statement: harmonic1.m randomwalk1.m Nested for statements: pascaltriangle.m The MATLAB if statement and its variants: randomwalk2.m The MATLAB while statement: randomwalk_while.m Function M-files.: collatz.m |
Assignment
2: Due Thursday, September 24 Solutions: gamblersruin.m archi_approx.m dayofweek.m find_day_of_week.m |
| September 24 |
Lecture 4:
Linear Algebra |
Assignment
3: Due Tuesday, October 6 Solutions: matrixtimes.m plot of times for A\b and U\(L\b) plot of ratio of times (values for smaller matrices not shown) myinverse.m resistor_solve.m |
|
| October 1 |
Polynomial Interpolation:
Almost all the material is in Chapter 3 of Moler, in far more detail
than we need. The demo program posted on this page shows how to
invoke the various interpolation methods in MATLAB. |
Interpolation demo (interp_demo.m), similar to the text's
interpgui. |
Assignment
4: Due Tuesday, October 13 Solutions M-file for Problem 1 |
| October 8 |
Nonlinear Equations |
bisection.m
(a robust implementation of the bisection method) bisectdeomo.m (an illustration of how to use bisection.m) |
Assignment
5, due Tuesday, November 3. Solutions M-file for Problem 3 |
| October 12 |
Review for Midterm |
Topics Last year's midterm (Solutions are blacked out---there's a very simple software trick for removing the blackout, but I wanted you to work the problmes first and not turn to the answers prematurely.) Another midterm prep problem. |
The midterm, with solutions. |
| October 26 |
Lecture Notes: Least Squares and Data Fitting Recursion |
matrixtimes2.m
(used to generate data used in Least Squares example) A function to convert integers to binary, written the iterative (non-recursive) way: it_convert_to_binary.m A recursive version: convert_to_binary.m A version that avoids certain kinds of nasty input errors: convert_to_binary2.m Recursive graphic example: kochcurve.m kochsnowflake.m |
Assignment
6-Due Tuesday, November 10 Solutions drawtree.m |
| November 9 |
Lecture
Notes: Numerical Integration |
Demonstration programs: quadrature.m Si.m (integrand to be used with the quadrature demo). montecarlo.m |
Assignment
7: Due November 17. |
| November 16 |
Lecture
Notes: Ordinary Differential Equations |
pendulum_pp.m (phase portraits
for pendulum) pendulum_animated.m (animation pendulum) |
Assignment
8. Due December 3 |