apopt.com

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

FileSizeRowsWhat it is
clean/force_js.csv97 B3 rowsCleaned copy written by the tutorial
expected/check_force.mjs386 BOutput a correct run produces (compare with yours)
expected/force.mjs102 BOutput a correct run produces (compare with yours)
expected/printed-output.txt538 BEverything the tutorial prints, cell by cell
raw/test_cases.csv244 B3 rowsthree 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

casecontact_sflight_ssource
book runner0.2500.099Chapter 3 running example: contact 0.25 s, step 0.349 s
course clip0.2000.150Chapter 9 running clip: contact 0.200 s, stride 0.700 s
sprint0.1000.120typed: 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/