A1: ODE initial value problems

Level: undergraduate (also an MSc refresher) · Language: Python · Status: pilot prerelease

Students should know: calculus including Taylor series, a first course in ordinary differential equations, and basic Python with NumPy arrays.

Students write three one-step methods for \(y' = f(t, y)\): Euler’s method, Heun’s method and the classical fourth-order Runge–Kutta method. Then they show with evidence that their code works: the observed convergence order, the error against the cost, and the stability limits. This turns the familiar “comparative study of Euler and Runge–Kutta methods” into a proper verification study.

Download

Download unit A1 (version 0.1.0a2, 52 KB)

Version

0.1.0a2

File

verifiedmethods-ode-ivp-0.1.0a2.zip

SHA-256 of the zip

11de007ade3d887c55c6487582ebc32ec4b8c5b968760c879d50d52d8b566775

Check-suite fingerprint

406f2a09c0b8a67974df7acc948194baaa71be36b3ba81933bac7db0c8b43a3d

Release notes and original assets · Download manifest

Use this unit alongside or shortly after teaching the methods, or as a project refresher. A full brief is optional for a shorter course practical; agree the scope with your lecturer. See getting started.

The check-suite fingerprint identifies the checker. A supervisor confirms the results by rerunning the student’s code; the fingerprint alone does not authenticate a report. Keep the original ZIP and SHA-256 with the submission. Use the matching tag when reviewing work from a published release. The first tagged pilot remains available for work submitted with that version. See the verification report.

To confirm that the download is complete and unchanged, compare its SHA-256 with the value above: on Windows run certutil -hashfile <file> SHA256, on macOS shasum -a 256 <file>, on Linux sha256sum <file>.

Quick start

Unzip the file, open a terminal in the unzipped folder, and set up once.

Windows (Command Prompt):

py -m venv .venv
.venv\Scripts\activate
python -m pip install -r requirements.txt

macOS and Linux:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Then run python verify.py and open report/verification-report.html in a browser. The starter methods are deliberately unfinished: not implemented yet is the expected first result. Before a full submission, run python verify.py --strict. Tutorial section 0 explains each step, with help for common problems. Anaconda users can skip the setup and run python verify.py from the Anaconda Prompt.

What students learn

Use the A1 report walkthrough to connect the example’s gate results, tables and plots with a written interpretation.

After this unit a student can:

  • derive Euler’s method from the Taylor series, and implement Euler, Heun and classical RK4 for systems of equations;

  • measure the observed order of convergence and explain why it departs from theory at large step sizes and near rounding level;

  • compare methods by the work needed for a target accuracy, not by the error at one step size;

  • explain stability limits, stiffness and why explicit methods fail on stiff problems;

  • produce and interpret a verification report.

What is in the unit

Tutorial

Nine short sections, from setting up Python to choosing a project brief

Project briefs

Comparing methods properly; Nigeria’s population with the logistic model; stiffness

For supervisors

Confirming a report, viva questions, a marking rubric, an AI-use statement

verify.py

Four gates and five reported results, written to an HTML report

Licence and citation

Code: BSD 3-Clause. Tutorial, briefs and supervisor material: CC BY 4.0. Population data in brief 2: World Bank, CC BY 4.0. A DOI is planned for a stable release; for this pilot, cite as: Tiamiyu, A. T. (2026), verifiedmethods unit A1: ODE initial value problems, version 0.1.0a2, https://verifiedmethods.github.io.