Implementing integration and sampling algorithms
Key skillsDesign and implement algorithms and simulations with suitable technology functions.
Build the idea
Implementation requires a complete sequence that another person or machine can follow, not merely a description of the idea. Specify initial values, updates, branches and termination, then record actual results from the run. For a simulation, reproduce the intended probabilities and compare a summary with theory while recognising that random outputs vary between runs.
Try the sample task
Implement the trapezium algorithm for ∫₀²x e(−x)dx with n=4 and n=8. Record your sums and compare them with the exact result. Give a reproducible loop or spreadsheet method.
The full worksheet includes the worked solution and remaining task set.
What this activity covers
Focused tool-neutral investigation using a calculus model and selected sampling tasks. Students must execute and record their own tool results; expected values here are derived mathematically. The activity does not exhaust every technology function in the outcome.