Examples
Examples
Try the starting example
- Required ingredient masses (kg)
- 5,2,1
- Available ingredient masses (kg)
- 1,1,0
- Purchase pack masses (kg)
- 2,0.5,1
- Packs to buy by ingredient (JSON)
- [2,2,1]
- Purchased masses (JSON)
- [4,1,1]
- Surplus masses (JSON)
- [0,0,0]
Try another scenario
- Required ingredient masses (kg)
- [6, 2, 1]
- Available ingredient masses (kg)
- [1, 1, 0]
- Purchase pack masses (kg)
- [2, 0.5, 1]
- Packs to buy by ingredient (JSON)
- [3,2,1]
- Purchased masses (JSON)
- [6,1,1]
- Surplus masses (JSON)
- [1,0,0]
Calculation method
Calculation method
Packs to buy by ingredient (JSON)
For each ingredient, round max(0,requirement−stock)/pack mass upward.
Purchased masses (JSON)
For each ingredient, round max(0,requirement−stock)/pack mass upward.
Surplus masses (JSON)
For each ingredient, round max(0,requirement−stock)/pack mass upward.
Symbols and units
- a
- Required ingredient masses (kg)
- b
- Available ingredient masses (kg)
- c
- Purchase pack masses (kg)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- User-supplied measurements and assumptions; For each ingredient, round max(0,requirement−stock)/pack mass upward. Supported limits: Finite numeric values bounded to 1e9 magnitude; lists and tables contain 1–100 records unless a stricter bound is stated. Inputs use the units shown. Lists explicitly paired by a method must have matching lengths; independent polynomial coefficient vectors may differ. Respect stated physical, interpolation, policy and computational domain limits.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.