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.

COOKING_PACKAGE

const COOKING_PACKAGE: IEnginePackage;

Defined in: packages/engine/src/packages/cooking/CookingPackage.ts:104

Cooking: the gas-mark scale, and scaling a recipe by its servings.

Two things a recipe asks for that are not unit conversions. A gas mark is a dial setting standing for an oven temperature, published as a table with uneven steps, so it is a lookup rather than a formula. Scaling by servings is a factor derived from two counts, which the cook then applies to whatever they are measuring.

What is deliberately not here: converting ingredients between cups and grams, which the units package already does through its ingredient densities (2 cups flour in grams), and Fahrenheit to Celsius, which is an ordinary unit conversion. This package is only what those two cannot express.