Week 9 • Friday

Block 89: Scientific Computing in Practice

Apply SciPy + SymPy together to a realistic scientific problem.

Concepts

Code Examples

See exercise below.

Exercise

Fit an exponential decay model y = A * exp(-k*t) to noisy data using curve_fit. Plot fit vs data. Report A and k with error estimates. Verify the fit result symbolically with SymPy.

Homework

What is residual analysis and why is it important when fitting models to data?