I use this repo as a small shelf for code I write while explaining math problems in class. Each script is meant to be read next to the problem statement, then run locally.
Most files follow this naming pattern:
s1p1.pymeans session 1, problem 1.s2p-scoring.pymeans a scoring note for session 2.func.pyis a short Python function example.
Use Python 3. Install the packages once:
pip install -r requirements.txtRun any problem file from the repo root:
python s1p1.pySome scripts print symbolic answers with SymPy. A few scripts draw plots with NumPy and Matplotlib.
- Clinic project is a cleaned class project for patient records and appointments.
- OpenFDA drug lookup is a cleaned API parsing example from the chat export.
- Problem 1
- Problem 2
- Problem 3
- Problem 4
- Problem 5
- Problem 6
- Problems 7 and 8
- Problem 9
- Problem 10
- Problem 11
- Scoring note
- Problem 1
- Problem 2
- Problem 3
- Problem 4
- Problem 5
- Problem 6
- Problem 7
- Problem 8
- Problem 9
- Problem 10
The scoring files are still placeholders.
docs/problem-index.mdlists the Python files and sizes.noteshas one short note for each script.docs/running-scripts.mdexplains how I run examples.docs/review-check.mdis the check I use before committing code examples.scripts/compile_problem_files.pycompiles the root Python files.testshas small checks for file names, requirements, and Python syntax.