Quality & Precision Assurance
Live Mathematical Verification Audit
At Fresh Taste Kitchen, accuracy is our foundation. This verification suite runs live in your browser, testing our core calculation engine against NIST Handbook 44 physical standards and USDA nutritional formulas.
Mathematical Integrity Audit Suite
Validates NIST Handbook 44 conversion constants, Atwater general factors, baker's percentage denominators, and scaling precision.
Test Status19 / 19 Invariants Passed
| Status | Verification Invariant Test | Expected Value | Engine Result |
|---|---|---|---|
| 1 US Cup to Milliliters (Exact NIST)vol_cup_ml | 236.5882 mL | 236.5882 mL | |
| 1 US Tablespoon to Millilitersvol_tbsp_ml | 14.7868 mL | 14.7868 mL | |
| 1 US Teaspoon to Millilitersvol_tsp_ml | 4.9289 mL | 4.9289 mL | |
| 1 Avoirdupois Ounce to Gramsmass_oz_g | 28.3495 g | 28.3495 g | |
| 1 Kilogram to Gramsmass_kg_g | 1000 g | 1000 g | |
| Boiling Point Temperature (212°F = 100°C)temp_boil | 100 °C | 100 °C | |
| Freezing Point Temperature (32°F = 0°C)temp_freeze | 0 °C | 0 °C | |
| Recipe Scaling: 4 servings to 8 (Doubles 2 cups to 4 cups)recipe_double | 4 cups | 4 cups | |
| Recipe Halving: 1 Egg Halved with Practical Culinary Advicerecipe_halve_egg | 0.5 item with whisked egg advice | 0.5 item (That's about 25g of beaten egg...) | |
| Ingredient Density Separation (1 cup Flour=120g, Sugar=200g, Brown=215g)density_differentiation | 120g / 200g / 215g | 120g / 200g / 215g | |
| Pan Area Ratio: 8-inch round to 9-inch round (ratio ~1.27x)pan_scaling | 1.27x ratio | 1.27x ratio | |
| Baker's Percentage (500g Flour=100%, 350g Water=70%, 10g Salt=2%)bakers_percentage | Flour 100%, Water 70%, Salt 2% | Flour 100%, Water 70%, Salt 2% | |
| Zero Flour Rejection in Baker's Percentagezero_flour_rejection | Error thrown on 0 flour | Correctly rejected division by zero | |
| Dough Hydration (1000g Flour, 750g Water = 75.0% Hydration)hydration_calc | 75.0% | 75% | |
| Atwater 4-4-9 Factors (10g Protein + 20g Carbs + 5g Fat = 165 kcal)atwater_factors | 165 kcal | 165 kcal | |
| Margin vs Markup Distinction (Cost $3, Price $10 => Margin 70%, Markup 233.3%)margin_vs_markup | Margin 70.0%, Markup 233.3% | Margin 70%, Markup 233.3% | |
| Butter Stick Convention (1 stick = 8 tbsp = 1/2 cup = 4 oz = ~113.4g)butter_stick_convention | 113.4g, 8 tbsp, 0.5 cup, 4 oz | 113.4g, 8 tbsp, 0.5 cup, 4 oz | |
| Unit Preference Standards: US Legal Cup (236.59 mL) vs Metric Cup (250 mL)unit_preference_cup_invariants | US: 236.5882 mL, Metric: 250 mL | US: 236.5882 mL, Metric: 250 mL | |
| Unit Preference LocalStorage Persistence (ftk_preferred_unit_system)unit_preference_storage_contract | localStorage['ftk_preferred_unit_system'] stores 'us' or 'metric' | SSR Safe Default: US Customary |
Testing Methodology & Mathematical Invariants
Unlike generic websites that round prematurely or assume identical weights for all powders, Fresh Taste Kitchen enforces distinct physics layers:
- 1 US Legal Cup = exactly 236.5882365 mL, distinct from the 250 mL Commonwealth Metric Cup.
- Ingredient Densities are isolated: 1 cup of spooned-and-leveled flour (120g) will never produce the same mass as granulated sugar (200g) or packed brown sugar (215g).
- Baker's Percentages enforce total flour > 0: Flour serves as the 100% reference denominator; zero flour inputs are actively rejected to prevent divide-by-zero crashes.
- Gross Margin vs Markup: We maintain strict distinction between margin percentage (profit divided by selling price) and markup percentage (profit divided by cost).