Skip to content

Numerical Analysis (Einführung in die Numerik)

WS 2026/27

Interactive academic vault and learning prototype for Numerical Analysis (Einführung in die Numerik) taught by Prof. Dr. Peter Bastian (Interdisciplinary Center for Scientific Computing — IWR, Heidelberg University, Wintersemester 2026/27).


Click any tile below to dynamically switch visible page sections live without page reloads:


🔬 Mode: Interactive Labs & Visualizers 4 Live Simulators

Section titled “🔬 Mode: Interactive Labs & Visualizers ”

Numerical mathematics thrives on experimentation. Use the 4 interactive simulators below to deconstruct floating-point numbers, compare rounding methods, provoke cancellation, and solve laminar pipe flow networks in real-time:

🔬 Live-Labore

Interactive Numerics Lab Suite

🔢 Floating Point Systems F(β, r, s) & IEEE 754 Sandbox

Explore the mathematical structure of normalized floating point systems F(β, r, s). Compare the mini-system F(3,2,2) from Exercise Sheet 1 with IEEE 754 single and double precision.

Preset System:
Kardinalität |F(β,r,s)|205inkl. Null & Vorzeichen
Kleinste pos. Zahl x₊5.0805e-5Unterlaufgrenze (Underflow)
Größte Zahl X₊5832Überlaufgrenze (Overflow)
Maschinengenauigkeit eps0.16667eps = 0.5 * β^(1-r)
🎯 Interactive Rounding Sandbox
Left neighbor left(x):0.74
Right neighbor right(x):0.75
Rounded value rd(x):0.74
Relative error:0.67% (≤ eps)

💡 Erklärung: 0.745 liegt exakt auf der halben Strecke zwischen 0.74 und 0.75. Die vorletzte Mantissenziffer von 0.74 ist 4 (gerade), von 0.75 ist 5 (ungerade). Daher rundet Round-to-Even auf 0.74!

⚡ Catastrophic Cancellation & Stability Lab

See catastrophic cancellation in action when subtracting nearly identical floating point values, and observe how Vieta stabilization completely solves it.

❌Naive pq Formula
x₂ = p/2 - √(p²/4 - q)
9.999999747378752e-05⚠️ 8 signifikante Bits verloren

Subtracts p/2 from √(p²/4 - q). For large p, leading bits cancel completely!

✅Vieta Stabilization
x₁ = p/2 + √(p²/4 - q),   x₂ = q / x₁
1.0000000000000000e-04✓ Volle 16 Dezimalstellen

x₁ is computed stably via addition; x₂ is obtained via Vieta relation x₁ · x₂ = q.

💧 Pipe Network Simulator: Linear Systems (Lecture 4)

Interactive simulation of the 5-node, 6-pipe, 2-pump network from Lecture 4 slides 59–63. Solves B̂ᵀ L B̂ p̂ = -Ĉᵀ s in real-time for node pressures and flows!

q₁: --q₂: --q₃: --q₄: --q₅: --q₆: --Pumpe 2Pumpe 11p₁ = --2p₂ = --3p₃ = --4p₄ = --5p₅ = 0 (Ref)
System Equation:A · p̂ = -Ĉᵀ s   (A = B̂ᵀ L B̂ ∈ ℝ⁴ˣ⁴, s.p.d.)
Kirchhoff Balance:✓ ∑ q = 0 an allen 5 Knoten erfüllt

📈 Epidemic Growth & Parameter Estimation (Lecture 1)

The 55 real COVID-19 infection data points from Germany (Feb 24 to Apr 18, 2020). Compare 2-point interpolation, linear least-squares regression and doubling time T₂ = ln(2)/λ!

Y-Axis Scale:
1. Lockdown (22.03.)
Growth Rate λ0.248 / Tagln(u(t)) = ln(u₀) + λt
Doubling Time T₂2.79 TageT₂ = ln(2) / λ
Initial Cases u₀19 InfizierteSchätzung am 24.02.2020

As illustrated in Prof. Bastian’s lecture notes (Lecture 1, Slide 10), scientific computing forms a rigorous verification loop:

flowchart TD
A["🌍 Reality<br/>(Pipe networks, epidemics, physics)"] -->|"Mathematical modeling"| B["📐 Mathematical Model<br/>(ODEs, linear & non-linear systems)"]
B -->|"Discretization & approximation"| C["⚙️ Numerical Model<br/>(Hagen-Poiseuille, Newton, Least Squares)"]
C -->|"Software engineering"| D["💻 Computer Program<br/>(C++20, HDNum, IEEE 754)"]
D -->|"Simulation & output"| E["📊 Numerical Solution & Predictions"]
E -.->|"Verification & validation"| A