RatMath ShelfCourse guide

University: upper level

Numerical analysis

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

90%

36 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
33 · 82.5%
Assisted
3 · 7.5%
Worked by hand
4 · 10%

Using the packages

Preview values are convenient for exploring an algorithm; exact references help separate discretization from roundoff. The pinned bisection routine can report another root when an initial bracket contains several. Isolate the target before trusting its error column.

Calculator interface

Expose working precision, iteration history, residual, step size and a proven bound separately. Make absolute and relative error explicit and let students compare two mesh sizes.

Packages used in the lessons

@ratmath/analytic (22 days) · @ratmath/core (9 days) · @ratmath/linalg (6 days) · @ratmath/symbolic (2 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

36 of 40 days include a checked executable example. On 12 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Arithmetic and conditioning. Binary64 examples at ordinary and extreme scales; 2×2 to 10×10 matrices illustrate condition numbers.

Unit benchmark · core.Rational.multiply, operand bits. Largest passing sample 131,072 (1.53 ms, 75.5 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Nonlinear equations. One bracket or one or two starting points, tolerances about 10⁻²–10⁻¹⁰ and a finite iteration budget.

Unit benchmark · analytic.bisection, decimal tolerance exponent. Largest passing sample 24 (7.66 ms, 79.5 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 17–24 · Approximation. About 2–20 nodes for explicit polynomial interpolation or low-degree least-squares fits; clustered nodes change conditioning.

Unit benchmark · analytic.interpolate, distinct nodes. Largest passing sample 64 (17.06 ms, 89.7 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Quadrature. A few to a few hundred panels, a low-degree polynomial or smooth test function, and a specified error criterion.

Unit benchmark · analytic.quadratureRule, Simpson panels. Largest passing sample 2,048 (120 ms, 90.9 MiB peak process RSS). The first sampled passing call above 100 ms used 2,048 (120 ms). The runs did not locate a ceiling for this family.

Days 33–40 · ODEs and linear systems. Typically tens to hundreds of time steps or small exact linear systems; stability depends on step size times spectral scale.

Unit benchmark · analytic.odeMethod, Euler steps. Largest passing sample 1,000 (292 ms, 90.4 MiB peak process RSS). The first sampled passing call above 100 ms used 300 (117 ms). The runs did not locate a ceiling for this family.

Accuracy notes (1)

Fixed · Bisection identifies the root selected by its trace. For (x−1)(x−6)(x−9) on [0,10], the certificate now returns the root 1 inside the last displayed bracket. A sign-changing interval can still contain several roots.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Arithmetic and conditioning

Decode binary floats, identify cancellation and distinguish residual from forward error.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 1 Floating point
  2. Day 2 Catastrophic cancellation
  3. Day 3 Condition number
  4. Day 4 Determinant
  5. Day 5 Linear approximation
  6. Day 6 Relative error
  7. Day 7 Stable reformulation
  8. Day 8 Residual and conditioning
Days 9–16 Nonlinear equations

Select a bracket, estimate convergence order and establish a contraction.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 9 Bisection
  2. Day 10 Newton's method
  3. Day 11 Secant method
  4. Day 12 Fixed-point iteration
  5. Day 13 Newton's method
  6. Day 14 Contraction mapping
  7. Day 15 Bracket length
  8. Day 16 Newton at a multiple root
Days 17–24 Approximation

Interpolate, choose nodes, fit a model and extrapolate cautiously.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 17 Interpolation
  2. Day 18 Natural cubic spline
  3. Day 19 Chebyshev nodes
  4. Day 20 Least squares
  5. Day 21 Richardson extrapolation
  6. Day 22 Least squares line
  7. Day 23 Polynomial exactness
  8. Day 24 Runge's phenomenon
Days 25–32 Quadrature

Derive weights, use polynomial exactness and control discretization error.

7 direct calculation · 1 assisted · 0 worked by hand

  1. Day 25 Trapezoid rule
  2. Day 26 Simpson's rule
  3. Day 27 Gaussian quadrature
  4. Day 28 Simpson's rule
  5. Day 29 Taylor's remainder
  6. Day 30 Darboux sums
  7. Day 31 Quadrature extrapolation
  8. Day 32 Quadrature orders
Days 33–40 ODEs and linear systems

Step through time, assess stability and solve with factorizations or iterations.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 33 Euler's method
  2. Day 34 Runge–Kutta
  3. Day 35 Stability
  4. Day 36 LU factorisation
  5. Day 37 Iterative methods and eigenvalues
  6. Day 38 Euler's method
  7. Day 39 Explicit Euler stability
  8. Day 40 Pivoting

Start day 1 →