Public
Edited
Apr 14, 2023
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height_m = height_cm / 100
Insert cell
stride_m = height_m * 0.414
Insert cell
distance_m = stride_m * steps
Insert cell
speed_lookup = ({"Average (3 miles/hour)": ({speed: 3, MET: 3.5}), "Slow (2 miles/hour)": ({speed: 2, MET: 2.8}), "Fast (4 miles/hour)": ({speed: 4, MET: 5}) })
Insert cell
speed_mph = speed_lookup[speed].speed
Insert cell
speed_kph = speed_mph * 1.609
Insert cell
MET = speed_lookup[speed].MET
Insert cell
time_h = distance_m / (speed_kph * 1000)
Insert cell
time_m = time_h * 60
Insert cell
cal = time_m * MET * 3.5 * weight_kg / 200
Insert cell
import {viewof weight, viewof weight_unit, viewof height, viewof height_unit, weight_kg, height_cm} from "@andyreagan/bmr-calculator"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more