Example scripts
The table below contains some example scripts using basic course concepts.
| Script link | Notes |
|---|---|
| Python basics | |
| Plotting a sine wave | Basic use of matplotlib |
| Parachute problem | |
| Parachute problem (copilot solution) | |
| Parachute functions | |
| Matplotlib quick reference | Plots with some styling options |
| Quiz corrections for extra credit | An example to follow if doing extra credit to make up points lost on a quiz |
| Dartboard approximation of \(\pi\) | Convergence and error tolerance example with plots |
| Homework 3 notes | My notes on some of the common approaches I saw while grading homework 3. |
| Homework 4 notes | My notes on things I observed while grading homework 4. |
| Root-finding example code | |
| Python structuring tips | Several ways of dealing with a notebook with multiple parameters to keep track of. |
| Importing PDA data | Example of importing one of the PDA data files. |