**Content:** Conditioning and stability, floating-point arithmetic. *Numerical linear algebra*: Vector and matrix norms, singular value decomposition, QR factorization, LU and Cholesky factorizations, conjugate gradient method, eigenvalue algorithms. *Beyond linear algebra:* root finding, interpolation, numerical integration and differentiation, unconstrained and constrained optimization.

**Objectives:** At the end of the course, students will be able to:

- Analyze the conditioning of numerical problems and the stability of numerical algorithms
- State and derive the stability properties, computational complexity, and applicability criteria of standard numerical algorithms
- Identify the numerical algorithms best suited for given problems
- Solve complex problems by designing and implementing appropriate combinations of numerical algorithms

**Textbooks:**

- Heath,
*Scientific Computing: An Introductory Survey, Second Edition* - Trefethen and Bau,
*Numerical Linear Algebra* - Boyd and Vandenberghe,
*Convex Optimization*

**Prerequisites:** COL 100 / CSL 100 / CSL 101 / CSL 102 or equivalent. Overlaps with MTL 704. Familiarity with linear algebra and calculus is assumed.

- Monday, 30 Dec: Introduction, conditioning (Heath 1.1, Trefethen & Bau 12)
- Practice exercises: Heath review questions 1.14, 1.15, 1.18–1.20, exercises 1.1–1.5

- Thursday, 2 Jan: Floating-point arithmetic, accuracy and stability (Trefethen & Bau 13, 14, 15)
- Practice exercises: Heath exercises 1.6, 1.9–1.12, 1.24, Trefethen & Bau exercises 13.1–13.3, 14.2, 15.1
- Further reading (optional!): Goldberg, “What every computer scientist should know about floating-point arithmetic”, 1991

- Monday, 6 Jan: Review of linear algebra (TB 1, 2)
- Practice exercises: TB 1.1, 1.3–4, 2.1–3, 2.6–7
- Further reading: Nita, “Matrix Representations of Linear Transformations and Changes of Coordinates”

- Thursday, 9 Jan: Norms (TB 3)
- Practice exercises: TB 2.4, 3.1–6

- Monday, 13 Jan: The singular value decomposition (TB 4, 5)
- Practice exercises: TB 4.1–4, 5.1–2
- Further reading: Ranade, “Some uses of spectral methods”

- Thursday, 16 Jan: Projectors and QR factorization (TB 6, 7)
- Practice exercises: TB 6.1–2, 6.5, 7.1–5

- Monday, 20 Jan: Householder triangularization (TB 8, 9, 10)
- Practice exercises: TB 8.2–3 (use either Python or Matlab), 9.2–3, 10.1–4
- Further reading: Moler, “Compare Gram-Schmidt and Householder Orthogonalization Algorithms”, 2016

- Thursday, 23 Jan: Solving linear and least-squares problems (TB 16, 11, 18)

- Homework assignments: 30% (dates for future assignments are tentative)
- Homework 1: 10 Jan–24 Jan
- Homework 2: 27 Jan–10 Feb
- Homework 3: 13 Feb–27 Feb
- Homework 4: 27 Feb–12 Mar
- Homework 5: 23 Mar–6 Apr
- Homework 6: 9 Apr–23 Apr

- Minor I: 20%
- Minor II: 20%
- Major: 30%

Students may use either Matlab or Python 3 with Numpy/Scipy for the programming component of the homework. If you do not have prior experience with either, I suggest choosing Python; please go through one of the following tutorials to familiarize yourself:

- Getting started with Python for science from the Scipy Lecture Notes
- Python Numpy Tutorial from the Stanford CS231n notes

**Grading:** Following institute policy, a minimum of 80% marks are required for an A grade, and minimum 30% marks for D.

**Late policy:** Homework assignments are due at midnight on the due date. You are allowed a total of 5 late days across all the assignments. Any assignment submitted after the total allowed late days have been used will not be graded.

**Audit policy:** Earning marks equivalent to a C grade or better is required for audit pass.

**Attendance policy:** Attendance lower than 75% will result in a one-grade penalty (e.g. A to A–, or A– to B).

**Collaboration policy:** Adapted from Dan Weld’s guidelines, via Mausam:

Collaboration is a very good thing. On the other hand, cheating is considered a very serious offense. Please don’t do it! Concern about cheating creates an unpleasant environment for everyone. If you cheat, you get a zero in the assignment, and additionally you risk losing your position as a student in the department and the institute. The department’s policy on cheating is to report any cases to the disciplinary committee. What follows afterwards is not fun.

So how do you draw the line between collaboration and cheating? Here’s a reasonable set of ground rules. Failure to understand and follow these rules will constitute cheating, and will be dealt with as per institute guidelines.

The Kyunki Saas Bhi Kabhi Bahu Thi Rule:This rule says that you are free to meet with fellow students(s) and discuss assignments with them. Writing on a board or shared piece of paper is acceptable during the meeting; however, you should not take any written (electronic or otherwise) record away from the meeting. This applies when the assignment is supposed to be an individual effort or whenever two teams discuss common problems they are each encountering (inter-group collaboration). After the meeting, engage in a half hour of mind-numbing activity (like watching an episode ofKyunki Saas Bhi Kabhi Bahu Thi), before starting to work on the assignment. This will ass