Neighbourhood Ball Probe

The learner drags an open ball B(p, r) over a space in the plane or on the torus, shrinks it, and counts the pieces of the space inside it, each piece coloured in a magnified view and listed by parameter interval: the topologist's sine curve keeps infinitely many arcs in every ball on its limit segment, the Hawaiian earring keeps whole circles, and the immersed figure eight and the dense torus line show one piece coming from several parameter intervals.

Used in: Mathematical Analysis

Props

PropTypeDefaultDescription
titlestringper space, e.g. "Probing the topologist's sine curve"Card title.
controlsstring[]all controls shownRegistry ids of the controls this page shows (core ones always show); absent shows everything. Fitted by component_scopes.py.
spacestring"topologist-sine" ("custom" when curves is given)The space probed: topologist-sine (y = sin(1/x) on (0, 1] plus the limit segment), hawaiian-earring (circles C_n of radius 1/n through the origin), figure-eight (the injective immersion t -> (sin 2t, sin t), t in (-pi, pi)), torus-line (t -> (t, alpha t) mod 1 on the unit-square torus), custom (the curves prop).
curvesstring[]noneCustom space: one entry per curve, "param2d:x=<expr in t>,y=<expr in t>,tmin=<num>,tmax=<num>" or "y=<expr in x>[,xmin=..,xmax=..]" (x range defaults to xRange). The constant alpha may appear.
segmentnumber[][] | boolean[[0, -1], [0, 1]] for topologist-sine, none otherwiseA segment [[x1, y1], [x2, y2]] that is part of the space (the limit segment of the sine curve, or extra for custom). false drops it (the sine curve alone, which is path-connected).
torusbooleanfalseCustom space only: read the curves on the torus (coordinates mod 1, the ball wraps around). torus-line is always on the torus.
xRangenumber[]per space, e.g. [-0.1, 1]x range [min, max] of the whole view (ignored on the torus).
yRangenumber[]per space, e.g. [-1.2, 1.2]y range [min, max] of the whole view (ignored on the torus).
ballobjectper space, e.g. {center: [0, 0.3], radius: 0.1}The probe ball {center: [x, y], radius: r} (open ball). On the torus the radius is at most 0.45.
radiusRangenumber[]per space, e.g. [0.005, 0.8]Radius slider range [min, max] (log scale); Shrink the ball stops at min.
xminnumber0.002topologist-sine: the curve is drawn for x >= xmin (slider, 0.0005 to 0.2).
circlesnumber60hawaiian-earring: circles C_1 ... C_N drawn (slider up to 200; facts about all circles are exact).
alphanumbersqrt(2)torus-line: slope; a rational p/q (q <= 12) closes up at t = q, anything else is treated as irrational. Also the constant alpha in custom curves.
alphaChoicesnumber[]nonetorus-line: preset slope buttons, e.g. [0.5, 1.41421] (rational against irrational).
tmaxnumber12torus-line: the line is drawn for 0 <= t <= tmax (slider 1 to 150).
showIntervalsbooleantrueList each piece by the parameter interval(s) it comes from (x for the sine curve, t, or theta on circle C_n).
zoombooleantrueShow the magnified view of the ball beside the whole space.