Equation pipeline check
This page exercises the chain that every later page depends on:
packages/pe-core/equations/equations.yamlholds the expression, its assumptions, its citation and hand-checked test values.python scripts/gen_equations.pyparses it with sympy, generates the LaTeX and the shared test vectors, and fails if a test value disagrees with the expression.- The TypeScript engine is tested against those vectors (1e-9 relative), and every generated formula is rendered by KaTeX in strict mode.
- The docs embed the result with
<Eq id="…" />; nobody types LaTeX.
- conversion ratio
- duty ratio
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- continuous conduction mode (CCM)
- periodic steady state
- small-ripple approximation
- Convention
- Source
- Erickson & Maksimović 2020, Ch. 2 (Principles of Steady-State Converter Analysis)
- Derivation
- step-by-step sympy derivation
- Equation id
buck.ccm.M· equations.yaml entry
Open the expander under the equation for its assumptions and source; the badge links to the parity test. The equation itself is explained on the volt-second balance page.
The same engine in the browser
Section titled “The same engine in the browser”The chart below is a React island that calls the TypeScript evaluators of the buck and boost CCM conversion ratios in your browser and plots them with Plotly. The equation explorer does the same for any equation in the catalogue.
The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.