Numerical Analysis (CS 450) Fall 2023
What | Where |
---|---|
Time/place | Tue/Thu 11:00am--12:15pm 1320 Digital Computer Lab / Catalog |
Class URL | https://bit.ly/cs450-f23 |
Class recordings | Illinois Mediaspace |
Discussion | Discuss » |
Administrative Help | Help Desk (click "Message" on the top right) |
Chat | Chat » · In-lecture chat |
Recitation | Mondays at 2:30pm in 151 Loomis · Recordings |
Calendar | View » |
Quizzes
Older Quizzes
- Quiz for Lecture 26
- Quiz for Lecture 25
- Quiz for Lecture 24
- Quiz for Lecture 23
- Quiz for Lecture 22
- Quiz for Lecture 21
- Quiz for Lecture 20
- Quiz for Lecture 19
- Quiz for Lecture 18
- Quiz for Lecture 17
- Quiz for Lecture 16
- Quiz for Lecture 15
- Quiz for Lecture 14
- Quiz for Lecture 13
- Quiz for Lecture 12
- Quiz for Lecture 11
- Quiz for Lecture 10
- Quiz for Lecture 9
- Quiz for Lecture 8
- Quiz for Lecture 7
- Quiz for Lecture 6
- Quiz for Lecture 5
- Quiz for Lecture 4
- Quiz for Lecture 3
- Quiz for Lecture 2
Homework
- Homework set 14 (Due December 6)
- Homework set 13 (Due November 29)
- Homework set 12 (Due November 15)
Older Homeworks
- Homework set 11 (Due November 8)
- Homework set 10 (Due November 1)
- Homework set 9 (Due October 25)
- Homework set 8 (Due October 18)
- Homework set 7 (Due October 11)
- Homework set 6 (Due October 4)
- Homework set 5 (Due September 27)
- Homework set 4 (Due September 20)
- Homework set 3 (Due September 13)
- Homework set 2 (Due September 6)
- Homework set 1 (Due August 30)
4-Credit Hour Assignment
- Assignment 2 (4-credit hour) (Due December 12)
- Assignment 1 (4-credit hour) (Due December 6)
Exams
Please find information on our upcoming exams in the corresponding section of the class calendar. Reserve your time slots in the testing facility as soon as possible--otherwise your preferred times may no longer be available.
Course Outline
-
Introduction to Scientific Computing
- Notes
- Notes (unfilled, with empty boxes)
- Notes (source code on Github)
- About the Class
- Errors, Conditioning, Accuracy, Stability
- In-Class Activity: Forward/Backward Error
- Floating Point
- In-Class Activity: Floating Point
- Demo: Catastrophic Cancellation
- Demo: Conditioning of Evaluating tan
- Demo: Density of Floating Point Numbers
- Demo: Floating Point and the Series for the Exponential Function
- Demo: Floating Point vs Program Logic
- Demo: Floating point and the Harmonic Series
- Demo: Picking apart a floating point number
- Demo: Truncation vs Rounding
- Demo: Vector Norms
- Demo: Writing Testable Numerics Code
-
Systems of Linear Equations
- Theory: Conditioning
- In-Class Activity: Matrix Norms and Conditioning
- Methods to Solve Systems
- LU: Application and Implementation
- In-Class Activity: LU
- Demo: Coding back-substitution
- Demo: Complexity of Mat-Mat multiplication and LU
- Demo: Condition number visualized
- Demo: Conditioning of 2x2 Matrices
- Demo: LU Factorization with Partial Pivoting
- Demo: LU Factorization
- Demo: Matrix norms
- Demo: Sherman-Morrison
- Demo: Vanilla Gaussian Elimination
-
Linear Least Squares
- Introduction
- In-Class Activity: Least Squares
- Sensitivity and Conditioning
- Solving Least Squares
- In-Class Activity: QR
- In-Class Activity: Householder, Givens, SVD
- Demo: 3x3 Givens demo
- Demo: 3x3 Householder demo
- Demo: Gram-Schmidt and Modified Gram-Schmidt
- Demo: Gram-Schmidt--The Movie
- Demo: Image compression
- Demo: Interactive Polynomial Fit
- Demo: Issues with the normal equations
- Demo: Keeping track of coefficients in Gram-Schmidt
- Demo: Normal equations vs Pseudoinverse
- Demo: Polynomial fitting with the normal equations
- Demo: Relative cost of matrix factorizations
-
Eigenvalue Problems
- Properties and Transformations
- Sensitivity
- Computing Eigenvalues
- In-Class Activity: Eigenvalues
- Krylov Space Methods
- Demo: Arnoldi Iteration
- Demo: Bauer-Fike Eigenvalue Sensitivity Bound
- Demo: Computing the SVD
- Demo: Exploring the Numerical Range
- Demo: Householder Similarity Transforms
- Demo: Motivating Power Iteration
- Demo: Orthogonal Iteration
- Demo: Power Iteration and its Variants
- Demo: QR Iteration
- Demo: Rounding in characteristic polynomial using SymPy
-
Nonlinear Equations
- Introduction
- In-Class Activity: Krylov and Nonlinear Equations
- Iterative Procedures
- Methods in One Dimension
- In-Class Activity: Nonlinear Equations
- Methods in $n$ Dimensions (``Systems of Equations'')
- Demo: Bisection Method
- Demo: Convergence of Newton's Method
- Demo: Convergence of the Secant Method
- Demo: Fixed point iteration
- Demo: Newton's Method
- Demo: Newton's method in n dimensions
- Demo: Rates of Convergence
- Demo: Secant Method
- Demo: Three quadratic functions
-
Optimization
- Introduction
- Methods for unconstrained opt. in one dimension
- In-Class Activity: Optimization Theory
- Methods for unconstrained opt. in $n$ dimensions
- In-Class Activity: Optimization Methods
- Nonlinear Least Squares
- Constrained Optimization
- Demo: Conjugate Gradient Method
- Demo: Gauss-Newton
- Demo: Nelder-Mead Method
- Demo: Newton's Method in 1D
- Demo: Newton's Method in n dimensions
- Demo: Sequential Quadratic Programming
- Demo: Steepest Descent
-
Interpolation
- Introduction
- Methods
- In-Class Activity: Interpolation
- Error Estimation
- Piecewise interpolation, Splines
- Demo: Chebyshev Interpolation
- Demo: Choice of Nodes for Polynomial Interpolation
- Demo: Composite Gauss Interpolation Error
- Demo: Interpolation Error
- Demo: Interpolation with Radial Basis Functions
- Demo: Jump with Chebyshev Nodes
- Demo: Monomial interpolation
- Demo: Orthogonal Polynomials
- Demo: Playing with Barycentric Interpolation
-
Numerical Integration and Differentiation
- Numerical Integration
- Quadrature Methods
- Accuracy and Stability
- Gaussian Quadrature
- Composite Quadrature
- Numerical Differentiation
- Richardson Extrapolation
- In-Class Activity: Differentiation and Quadrature
- Demo: Accuracy of Newton-Cotes
- Demo: Finite Differences vs Noise
- Demo: Floating point vs Finite Differences
- Demo: Gaussian quadrature weight finder
- Demo: Newton-Cotes weight finder
- Demo: Richardson with Finite Differences
- Demo: Taking Derivatives with Vandermonde Matrices
-
Initial Value Problems for ODEs
- Existence, Uniqueness, Conditioning
- Numerical Methods (I)
- Accuracy and Stability
- Stiffness
- Numerical Methods (II)
- In-Class Activity: Initial Value Problems
- Demo: Backward Euler stability
- Demo: Dissipation in Runge-Kutta Methods
- Demo: Forward Euler stability
- Demo: Predator-Prey System
- Demo: Stability regions
- Demo: Stiffness
-
Boundary Value Problems for ODEs
- Existence, Uniqueness, Conditioning
- Numerical Methods
- Demo: Finite differences
- Demo: Shooting method
- Demo: Sparse matrices
- Partial Differential Equations and Sparse Linear Algebra
- Fast Fourier Transform
- Additional Topics
CAUTION!
These scribbled PDFs are an unedited reflection of what I wrote during class. They need to be viewed in the context of the class discussion that led to them. See the lecture videos for that.
If you would like actual, self-contained class notes, look in the outline above.
These scribbles are provided here to provide a record of our class discussion, to be used in perhaps the following ways:
- as a way to cross-check your own notes
- to look up a formula that you know was shown in a certain class
- to remind yourself of what exactly was covered on a given day
By continuing to read them, you acknowledge that these files are provided as supplementary material on an as-is basis.
- scribbles-2023-08-22-andreas.pdf
- scribbles-2023-08-24-andreas.pdf
- scribbles-2023-08-29-andreas.pdf
- scribbles-2023-08-31-andreas.pdf
- scribbles-2023-09-05-andreas.pdf
- scribbles-2023-09-07-andreas.pdf
- scribbles-2023-09-12-andreas.pdf
- scribbles-2023-09-14-andreas.pdf
- scribbles-2023-09-19-andreas.pdf
- scribbles-2023-09-21-andreas.pdf
- scribbles-2023-09-26-luke.pdf
- scribbles-2023-09-28-andreas.pdf
- scribbles-2023-10-03-andreas.pdf
- scribbles-2023-10-05-andreas.pdf
- scribbles-2023-10-10-andreas.pdf
- scribbles-2023-10-12-andreas.pdf
- scribbles-2023-10-17-andreas.pdf
- scribbles-2023-10-19-andreas.pdf
- scribbles-2023-10-24-andreas.pdf
- scribbles-2023-10-26-andreas.pdf
- scribbles-2023-10-31-andreas.pdf
- scribbles-2023-11-02-andreas.pdf
- scribbles-2023-11-07-andreas.pdf
- scribbles-2023-11-09-andreas.pdf
- scribbles-2023-11-14-andreas.pdf
- scribbles-2023-11-16-andreas.pdf
- scribbles-2023-11-28-andreas.pdf
- scribbles-2023-11-30-andreas.pdf
- scribbles-2023-12-05-andreas.pdf
Team
Statement on CS CARES, Values, and Code of Conduct
All members of the Illinois Computer Science department---faculty, staff, and students---are expected to adhere to the CS Values and Code of Conduct. The CS CARES Committee is available to serve as a resource to help people who are concerned about or experience a potential violation of the Code. If you experience such issues, please contact the CS CARES Committee. The instructor of this course are also available for issues related to this class.
Textbook
Michael T. Heath, Revised Second Edition, Society for Industrial and Applied Mathematics
Also see our class Piazza forum for a discount code for purchasing the book from SIAM.
Computing
We will be using Python with the libraries numpy, scipy and matplotlib for in-class work and assignments. No other languages are permitted. Python has a very gentle learning curve, so you should feel at home even if you've never done any work in Python.
Running Code on your Own Computer
While running code in this online system should technically suffice to do your work for this class, you may find it useful to also install Python on your own computer.
The recommended way of doing so involves downloading the Anaconda Python distribution. Note that this is a commercial product (even if it is free of charge), and this is not intended as an endorsement of the company or the product. Note that we cannot promise to provide technical support for this installation.
Another way to run Python code is through an online JupyterLab available through the course. Go to https://relate.cs.illinois.edu/lab get started. NOTE that this environment runs entirely in your browser. If you clear your browser data, any work 'saved' there will be irretrievably lost.
Grading Policies
Python Help
(see section 1 of the outline for more)
- Python tutorial
- Facts and myths about Python names and values
- Learn Python the hard way
- Project Euler (Lots of practice problems)
- From Python to Numpy
- PythonTutor (Execute Python step-by-step, with pictures)
Python workshop material
Numpy Help
(see section 1 of the outline for more)
- Introduction to Python for Science
- The SciPy lectures
- The Numpy MedKit by Stéfan van der Walt
- The Numpy User Guide by Travis Oliphant
- Numpy/Scipy documentation
- More in this reddit thread
- An introduction to Numpy and SciPy