generating-functions

← ~/visualizations

generating-functions #

Cycles through three linked views: (1) encoding a sequence a_n as an ordinary generating function A(x)=∑a_n x^n, (2) extracting a specific coefficient [x^n]A(x)=a_n with an animated scanner, and (3) showing how algebra on generating functions corresponds to sequence operations (index shift via x^k and convolution via the Cauchy product).

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Uses a 3-scene time loop (~3.2s each). All geometry snaps to a 4px grid for a blocky aesthetic. Animations use time-based phases and the provided cubic ease(). No external state; pure Canvas 2D drawing with lightweight shapes and monospace text.

← regularizationjoint-distributions →