● Runnable programs for every subsystem
Examples that actually compile.
Every example is a runnable Rust program in the
numra/examples/
directory of the workspace. Filter by equation class, stiffness,
or feature; click through to read the source and the relevant
book chapter.
● Gallery
Filter the catalog.
Pick an equation class, narrow by feature, or jump to the complexity that matches your starting point. Each card links to a worked write-up alongside the runnable Rust source.
Showing 14 of 14 examples.
- ODE beginner
Lorenz Attractor
Chaotic three-state ODE solved with DoPri5, plus uncertainty propagation across initial conditions.
numra/examples/lorenz.rs → - Hybrid beginner
Bouncing Ball (Event Detection)
Hybrid system showing event detection at ground contact, with restitution-based velocity reset.
numra/examples/bouncing_ball.rs → - ODE intermediate
ODE Solver Zoo & Auto-Selection
Tour of every numra ODE solver, plus the auto-selection logic that picks the right one from problem hints.
numra/examples/solver_zoo.rs → - ODE intermediate
Van der Pol Oscillator
Stiff ODE benchmark comparing explicit DoPri5 against implicit Radau5 across stiffness levels.
numra/examples/van_der_pol.rs → - PDE intermediate
1D Heat Equation
Linear parabolic PDE solved by method of lines with Dirichlet boundaries.
numra/examples/heat_equation.rs → - SDE intermediate
Geometric Brownian Motion (Monte Carlo)
SDE option-pricing example with ensemble statistics across Euler-Maruyama, Milstein, and SRA1.
numra/examples/gbm_monte_carlo.rs → - DDE intermediate
Mackey-Glass DDE
Classic chaotic delay differential equation solved by method of steps.
numra/examples/mackey_glass.rs → - DAE intermediate
Pendulum DAE
Pendulum solved both as an ODE in polar coordinates and as a DAE with a holonomic constraint.
numra/examples/pendulum_dae.rs → - DDE advanced
Mackey-Glass — Parameter Sweep
Delay-parameter study showing the periodic → chaotic → hyperchaotic transition in Mackey-Glass.
numra/examples/dde_mackey_glass.rs → - FDE advanced
Fractional Relaxation
Caputo-derivative FDE solved by L1 scheme, with the Mittag-Leffler exact solution as reference.
numra/examples/fractional_relaxation.rs → - IDE advanced
Viscoelastic Material (Prony Series)
Integro-differential equation for stress relaxation, evaluated with O(1)-memory Prony recursion.
numra/examples/viscoelastic_prony.rs → - PDE advanced
Stefan Problem (Moving Boundary)
One-phase melting/solidification PDE on a fixed domain via coordinate transformation.
numra/examples/stefan_problem.rs → - SPDE advanced
Stochastic Heat Equation
Linear parabolic SPDE with additive space-time white noise; deterministic limit recovered as σ → 0.
numra/examples/stochastic_heat.rs → - SPDE advanced
SPDE Heat — Adaptive Time Stepping
Stochastic heat equation comparing fixed vs. adaptive time stepping; convergence to deterministic limit.
numra/examples/spde_heat.rs →
No examples match the current filter combination.