Data / tutorials / q34-calc-web-page
Tutorial Q-34: A calculation in a web page
Tutorial
Write the foot-plant force formula in Python and in JavaScript, run both on three hand-checked cases, and confirm they give the same numbers.
Files for the tutorial A calculation in a web page (https://apopt.com/course/tutorials/q34-calc-web-page/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.
Files
| File | Size | Rows | What it is |
|---|---|---|---|
| clean/force_js.csv | 97 B | 3 rows | Cleaned copy written by the tutorial |
| expected/check_force.mjs | 386 B | Output a correct run produces (compare with yours) | |
| expected/force.mjs | 102 B | Output a correct run produces (compare with yours) | |
| expected/printed-output.txt | 538 B | Everything the tutorial prints, cell by cell | |
| raw/test_cases.csv | 244 B | 3 rows | three typed test cases (contact and flight time in seconds), not a recording: two from the book's running examples and one short sprint contact |
Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.
Preview of raw/test_cases.csv
| case | contact_s | flight_s | source |
|---|---|---|---|
| book runner | 0.250 | 0.099 | Chapter 3 running example: contact 0.25 s, step 0.349 s |
| course clip | 0.200 | 0.150 | Chapter 9 running clip: contact 0.200 s, stride 0.700 s |
| sprint | 0.100 | 0.120 | typed: a short sprint contact |
First 3 of 3 rows.
Where it came from
- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission: Published with the course under CC BY 4.0
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q34-calc-web-page/raw/test_cases.csv")const text = await (await fetch("https://apopt.com/data/tutorials/q34-calc-web-page/raw/test_cases.csv")).text();Or download load.py / load.js.
How to cite
Tutorial Q-34: A calculation in a web page. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q34-calc-web-page/