Public
Edited
Mar 7, 2023
Insert cell
Insert cell
Insert cell
Insert cell
viewof currentWeight = Inputs.number({ label: "Current Weight (kg)", value: 0 })
Insert cell
Insert cell
Insert cell
viewof wrist = Inputs.number({ label: "Wrist (in cm)", value:0 })
Insert cell
viewof ankle = Inputs.number({ label: "Ankle (in cm)", value:0 })
Insert cell
Insert cell
Insert cell
viewof squat = Inputs.number({ label: "Squat (kg)", value:0 })
Insert cell
viewof bench = Inputs.number({ label: "Bench (kg)", value:0 })
Insert cell
viewof deadlift = Inputs.number({ label: "Deadlift (kg)", value: 0 })
Insert cell
Insert cell
Insert cell
Insert cell
optimalLean = butt(height, wrist, ankle, bfPercent)
Insert cell
optimalBF = sex == "male" ? 12 : 20
Insert cell
currentLeanMass = (1 - bfPercent / 100) * currentWeight
Insert cell
bfPercent = navy(sex, height, waist, neck, hip)
Insert cell
Insert cell
function butt(height, wrist, ankle, bf) {
const inch = 2.54;
let h = height / inch;
let w = wrist / inch;
let a = ankle / inch;

const lbs =
h ** 1.5 *
(Math.sqrt(w) / 22.667 + Math.sqrt(a) / 17.0104) *
(bf / 224 + 1);
return lbs / 2.204623;
}
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