5.1b Differentiation labs
Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §5.1. Rewritten as original drills. Continues 5.1 Differentiation algorithms.
Implement the two stencils, check the parabola identities, and compare absolute errors on . Stubs fail until filled in.
Formula refresh
Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).
Labs
Activity: Forward difference
Given , , and coefficients for , print the forward-difference estimate of with 6 decimals.
Input: a b t h.
Write-ups
Using “cancel”, “epsilon”, and “h”, explain:
Why can making extremely small make a numerical derivative worse?
Minimum 3 words. Your answer must include: “cancel”, “epsilon”, “h”.
0 words
Meet the writing requirements, then you can open the model answer.
Explorers
Next: 5.2 Extrapolated difference.