Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Overview: Foundations of Discrete Computing

Numerical Methods Module 1 | COMP 521

The Big Picture: When Computers Meet Calculus

A Story That Changes Everything

In 1922, Lewis Fry Richardson published a numerical weather prediction experiment based on atmospheric observations from 1910. He calculated a pressure change of about 145 millibars in six hours, although the observed pressure changed little. He also imagined a forecast factory in which thousands of human computers would coordinate the calculations. That factory was a proposal, not the team that carried out his experiment.

The important question is why the calculation failed. The initial pressure and wind fields were not adequately balanced, exciting rapid atmospheric oscillations that overwhelmed the slower weather signal. Peter Lynch’s reconstruction shows that filtering the initial data greatly improves the forecast. The failure cannot be attributed simply to large finite-difference steps or rounding. Source: Lynch’s reconstruction.

This story gives us a useful habit: identify the mechanism before choosing a numerical repair. Smaller steps cannot repair an inappropriate initial state, just as a better initial state cannot repair an unstable method. In this module, we isolate approximation and floating-point errors so that each experiment tests a specific explanation.

Your Mission: Master the Art of Approximation

You’re about to discover how to navigate the fundamental paradox of computational physics:

The resolution of this paradox — understanding exactly what errors we introduce and how to control them — is the foundation of all computational astrophysics.

Why This Matters Now More Than Ever

Modern astrophysics pushes computational limits like never before:

You NEED to understand numerical methods at a fundamental level — not just which buttons to push, but why algorithms succeed or fail.

Learning Philosophy

This module embodies our “glass-box modeling” approach:

Module Learning Objectives

By completing this module, you will be able to:

Quick Navigation Guide

🎯 Choose Your Learning Path

🚶 Standard Path

Full conceptual understanding

Everything in Fast Track, plus:

🧗 Complete Path

Deep dive with all details

Complete module including:

  • All mathematical derivations

  • Custom method design

  • Automatic differentiation

  • All worked examples

  • Historical context

Mathematical Foundations

Module Contents

Part 1: Finite Differences and Discrete Calculus

Part 2: Floating-Point Arithmetic and Numerical Error

Part 3: Taylor Series, Error Order, and Derivative Methods

Part 4: Module Synthesis

Prerequisites Check


Start with Part 1, then use Part 3 before implementing quadrature rules.