Computing

Scientific computing

Turn mathematical statements into reproducible computations. Learn how to reason about units, numerical error and software reliability.

Numerical methods

A small reproducible experiment

Approximate the derivative of f(t) = t² with a forward difference. The exact derivative at t = 2 is 4. With step h, the approximation is 4 + h.

def forward_difference(t, h):
    if h <= 0:
        raise ValueError("h must be positive")
    return ((t + h)**2 - t**2) / h

# At t=2, h=0.1: expected 4.1 (rounding aside)

Repeat with h = 0.01 and compare errors. Very small steps may amplify floating-point cancellation.

Original illustrative Python snippet; the website does not execute Python or expose a notebook server.

Estimation

Sensors and filtering

A noisy observation combines information about a state with uncertainty. A scalar weighted average illustrates how a prior estimate and a measurement can be combined. A Kalman filter extends this idea using a specified dynamic model and covariance updates.

Example: a prior of 10 and observation of 12 with equal independent uncertainty give an equal-weight estimate of 11. This is not a complete filter implementation.

Computer engineering

Reliable and secure systems

Algorithms

Computational complexity

Compare operation counts as the input grows; measure runtime separately.

Distributed

Fault tolerance

Study retry behavior, idempotence and explicit failure assumptions.

Embedded

Sampling and control

Model periodic sampling, latency and simple feedback using simulated devices.

Defensive security

Secure development

Use input validation, least privilege and isolated test environments.

Reproducibility

Notebook workflow

Record Python version, dependencies, input seed, data dictionary, exact commands and expected analytical references. Run from a clean kernel. The separate scientific repository is private; verified notebook downloads will be listed only when release artifacts are ready.

View available learning resources