Polygonal Curve Stages
The learner steps a stage slider (or presses Play, or doubles n) and watches a sequence of polygonal curves refine: inscribed polygons whose lengths rise to the arc length of a graph, parametric or polar curve, staircases that close in on a curve while their length stays fixed, and Koch or Hilbert curve stages. Live readouts give each stage's length, the gap to the curve's length and, on request, the largest distance between stages.
Used in: Single Variable Calculus
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by construction ("Inscribed polygons and arc length", ...) | Card title. |
| construction | string | "inscribed" | inscribed: polygons with n chords inscribed in the curve (f, parametric or polar); staircase: n horizontal-then-vertical steps along a curve (f on interval, or the segment start to end); koch: Koch curve stages on the base segment start to end; hilbert: Hilbert curve stages in square. |
| f | string | "x^(3/2)" | Graph y = f(x) ("y = ..." or a bare expression in x). Free names other than x become parameter sliders. |
| interval | [number | string, number | string] | [0, 4] | [a, b] for f. Ends may be expressions in the parameters (e.g. "b"). |
| parametric | {x: string, y: string, t?: [number | string, number | string]} | none | Parametric curve x(t), y(t) with its parameter range t (default [-3, 3]). Wins over f. |
| polar | string | none | Polar curve r = f(theta) ("r = 1 + cos(theta)"). Wins over parametric and f. |
| thetaRange | [number | string, number | string] | [0, 2*pi] | Range of theta for polar. |
| parameters | {name, min, max, initial?, step?, label?}[] | sliders for the free names of the formulas | Named parameter sliders; the curve, its range and exact may use them. |
| n | integer | first listed stage, else 4 (inscribed, staircase), 2 (koch, hilbert) | Initial stage: number of chords, steps, or the Koch/Hilbert stage. |
| nRange | [integer, integer] | [1, 64] (inscribed, staircase), [0, 6] (koch), [1, 6] (hilbert) | Range of the stage slider. Caps: 1000 chords, 256 steps, Koch and Hilbert stage 6. |
| nValues | integer[] | none | Listed stages: a table of the length at each (highlighting the current one), and Play steps through them. Without it Play doubles n (inscribed, staircase) or steps by 1. |
| exact | number | string | computed numerically | Verified length of the curve (a number or an expression such as "14/3", "8*pi", "a*sinh(10/a)"). A warning shows when it disagrees with the numerical length. |
| showConvergence | boolean | false | Panel of the length of each stage against n, with the curve's length as a dashed line. |
| showDsDx | boolean | false | Graph only: highlight the chord through a draggable point with its Δx and Δy legs, its stretch |chord|/Δx and the value of ds/dx = √(1 + f'(x)²) there. With draggableEnd the point is the end point. |
| draggableEnd | boolean | false | Inscribed only: a draggable end point on the curve; the polygon and the lengths run from the start to it, and the length is labelled s(x). |
| start | [number, number] | [0, 0] | Koch: start of the base segment. Staircase without a curve: start of the target segment. |
| end | [number, number] | [1, 0] (koch), [1, 1] (staircase) | Koch: end of the base segment (the bumps point to its left). Staircase without a curve: end of the target segment. |
| square | [[number, number], [number, number]] | [[0, 0], [1, 1]] | Hilbert: lower-left and upper-right corners of the square. |
| showSupDistance | boolean | false | Staircase, koch, hilbert: mark and report the largest distance from the staircase to the curve, or between stage n - 1 and stage n run at constant speed. |
| xRange | [number, number] | the curve padded | Visible x range. |
| yRange | [number, number] | the curve padded | Visible y range. |
| equalAspect | boolean | true except for graphs y = f(x) | Equal units on both axes (chords look as long as they are). |
| note | string | none | Short line under the curve's formula ($...$ TeX allowed). |
| presets | {label, ...props}[] | none | Example dropdown: each preset overrides props (a new curve drops exact, note and the ranges unless it sets them). |
| presetLabel | string | "Main example" | Dropdown label of the main props. |
| controls | string[] | all controls shown | Registry ids of the optional parts to show (toggles, readouts, panels); absent shows everything. Fitted per node by component_scopes.py. |
PreviousNext