Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

HEALTH_PACKAGE

const HEALTH_PACKAGE: IEnginePackage;

Defined in: packages/engine/src/packages/health/HealthPackage.ts:33

Everyday health and fitness helpers (issue #257): bmi(weight, height), pace(distance, time) and speed(distance, time). On by default and removable.

They are functions, to stay clear of the many common words involved. Each works in stated units: kilograms and metres for BMI, kilometres and minutes for pace and speed. A plain number is read in that unit, and a quantity is converted into it, so bmi(70 kg, 175 cm) and bmi(70, 1.75) agree (#644; see HealthUnits.ts). pace and speed are the two ways the same effort is read, time per distance against distance per time.