norms

← ~/visualizations

norms #

Visualizes vector norms by morphing the 2D Lp unit ball (L1 diamond, L2 circle, L∞ square) and cycling through the three norm axioms: absolute homogeneity (scaling αv), triangle inequality (u+v head-to-tail vs ||u||+||v||), and positive-definiteness (vector shrinking to zero). A side panel shows the key formulas and live numeric values for ||v||1, ||v||2, and ||v||∞.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Uses a grid-snapped, green-on-black style. The Lp unit ball is drawn via a superellipse approximation with exponent 2/p (p≈16 for ∞) and smoothly interpolated between shapes. Animations are time-based with ease(), and panels are responsive via scale = min(w,h)/240.

← kkt-conditionsamortized-analysis →