Platform
Resources
Pricing
Sign in
Get started
Andy Reagan
Senior Data Scientist, MassMutual Lecturer, UC Berkeley MIDS -- PhD Applied Math, Computational Story Lab, UVM MS Applied Math, UVM BS Math, Virginia Tech
Workspace
Fork
Public
Fitness Calculators
By
Andy Reagan
Edited
May 22
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cal_func
=
function
(
weight
,
height
,
steps
,
speed
,
MET
)
{
const
time_m
=
time_func
(
height
,
steps
,
speed
)
return
time_m
*
MET
*
3.5
*
weight
/
200
}
Insert cell
time_func
=
function
(
height
,
steps
,
speed
)
{
const
height_m
=
height
/
100
const
stride_m
=
height_m
*
0.414
const
distance_m
=
stride_m
*
steps
const
speed_kph
=
speed
*
1.609
const
time_h
=
distance_m
/
(
speed_kph
*
1000
)
return
time_h
*
60
}
Insert cell
import
{
weight_input
,
weight_kg
,
height_input
,
height_cm
,
viewof
steps
}
from
"59248563da107bc7"
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
description_md
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
weight_input_vw
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height_input_vw
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
steps_vw
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
result_md
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cal_func
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
time_func
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML