Epsilon Tolerance Game

Limits and continuity at a point on one plot. In approach mode the learner slides two inputs toward a from both sides and watches their heights (and a live table) close in, even when f(a) is dragged away or missing; in the epsilon-delta, epsilon-N and beat-the-bound modes they set a tolerance and hunt for a window or cutoff that keeps the graph (or the sequence terms) inside, with escaping parts shown in red; sequence mode feeds sequences of inputs into f to show two paths giving different values.

Used in: Mathematical Analysis, Single Variable Calculus

Props

PropTypeDefaultDescription
titlestringby mode ("Approaching a point", "The ε–δ game", "The ε–N game", "Beat every bound", "Approaching along sequences")Card title.
modestringinferred: sequences -> sequence; M or MRange -> infinite; sequence (without f) or ends -> N; epsilon, epsilonRange, rule or terms -> delta; else approachapproach: inputs a - h and a + h close in on a, heights projected, a values table, optional draggable f(a). delta: epsilon band about L against a draggable delta window about a. N: epsilon band against a cutoff N for a sequence a_n or for f(x) as x -> ±infinity. infinite: a bound M against a window about a (or a cutoff N towards infinity) for infinite limits. sequence: sequences of inputs x_n -> a and their images f(x_n).
fstring"(x^2 - 4)/(x - 2)"The function of x (a leading "y =" is ignored). Supports + - * / ^, implicit multiplication, |u|, sin cos tan sec csc cot, asin acos atan (arcsin ...), sinh cosh tanh, sqrt cbrt exp ln log (natural) log10 log2 abs sign floor ceil round min max, pi, e.
pieces{f: string, when?: string}[]nonePiecewise function instead of f: the first piece whose condition holds gives the value; a piece without when is "otherwise". Conditions are comparisons in x, chained or joined by "and": "x < 3", "x >= 3", "x != 0", "x = 0", "0 <= x < 1".
numeratorstringnoneWith denominator: f is numerator/denominator; both are added to the table and the readout names the form (0/0, K/0, or the quotient law).
denominatorstringnoneDenominator of a quotient (see numerator).
termsstring[]noneDelta mode: f is the sum of these terms; each term is drawn dashed and the sum-law panel finds the delta that keeps each term within epsilon/2 of its own limit, and their minimum.
lowerstringnoneLower squeeze bound: a function of x (approach mode, drawn dashed and tabulated) or a sequence in n (N mode, hollow dots).
upperstringnoneUpper squeeze bound (see lower).
anumber | string2 for the default function, else 0The point x approaches. A string is evaluated ("sqrt(3)", "pi/2").
valueAtnumber | nullf(a) as given by f or piecesOverrides the value f(a) (filled dot); null makes f undefined at a (a hole). The limit does not change.
draggableValuebooleanfalseApproach mode: the learner drags the dot (a, f(a)) up and down (or defines f(a) when it is missing); the curve near a and the limit stay put.
sidestring"both"Approach, delta and infinite modes: approach a from both sides, only from the left (x < a) or only from the right (x > a). One-sided continuity rows appear with the continuity checklist.
tablenumber[] | booleana ± 0.1, a ± 0.01, a ± 0.001Approach mode: x values listed in the table (the live inputs and x = a are always added, highlighted); false hides the table.
zoomnumbernone (no zoom slider)Approach and sequence modes: largest magnification of the zoom slider around the point (e.g. 1000).
Lnumberthe numerically estimated limit (or f(a))Delta and N modes: the candidate limit at the centre of the epsilon band.
draggableLbooleanfalseDelta and N modes: the learner drags L (a handle on the left edge) to test other candidate limits, e.g. to see that no L works for a jump or for (-1)^n.
epsilonnumbergeometric middle of epsilonRangeStarting epsilon (half-height of the band).
epsilonRange[number, number][0.05, 2] (delta), [0.01, 1] (N)Range of the logarithmic epsilon slider.
rulestringnoneA formula for the candidate delta (delta and infinite-at-a modes) or cutoff N (N and infinite-at-infinity modes) in epsilon (or M and the bound name in infinite mode), e.g. "epsilon/3", "min(1, epsilon/3)", "1/epsilon", "e^M". A leading "delta =" or "N =" is ignored. The readout checks it against the current tolerance and a button applies it.
showAnswerbooleanfalseStart with the computed answer revealed (the largest delta, or the smallest cutoff N, for the current tolerance); the learner can toggle it.
showFeetbooleanfalseDelta mode: dashed feet where the graph meets y = L ± epsilon nearest to a, with their distances (the smaller is the largest delta).
showVerdictbooleanfalseApproach mode: a sentence comparing the one-sided limits and concluding whether the limit exists.
showChecklistbooleanfalseApproach mode: the three-part continuity checklist (f(a) defined, limit exists, they agree), plus one-sided continuity rows when side is set.
showTypebooleanfalseApproach mode: names the kind of discontinuity (removable, jump, infinite, oscillating) or none.
showAsymptotebooleanfalseLabels the vertical line x = a as an asymptote when the function is unbounded there.
endsstring"right" (when the function is studied at infinity)N and infinite modes for functions: x -> infinity (right), x -> -infinity (left), or both. Setting it puts the infinite mode at infinity instead of at a.
secondLnumberestimated limit at -infinityN mode with ends both: the limit as x -> -infinity when it differs from L (two half bands).
sequencestringnoneN mode: the sequence a_n in n (e.g. "1 + (-1)^n/n"). Sequence mode: a single sequence of inputs x_n.
sequencesstring[]["1/(n*pi)", "2/((4*n + 1)*pi)"]Sequence mode: up to five sequences of inputs x_n in n that approach a, each with its colour, images and table columns.
nMaxnumber30 (N), 20 (sequence)N mode: terms shown at first (the view widens when the cutoff needs more); sequence mode: the largest n on the terms slider.
Mnumbergeometric middle of MRangeInfinite mode: the starting bound the values must beat.
MRange[number, number][1, 100]Infinite mode: range of the logarithmic bound slider (positive).
directionstringinferred from the functionInfinite mode: up (f(x) > M, limit infinity) or down (f(x) < -M, limit -infinity).
logXbooleanfalseN and infinite modes at infinity: logarithmic x axis (the x range must be positive), for cutoffs like e^M.
cutoffNamestring"N"Letter for the cutoff in x or n (the subject's notation, e.g. "M" when the text writes x > M).
cutoffRulestring"gt"N mode for sequences: gt reads every a_n with n > N (the smallest N is the last index outside the band); ge reads every a_n with n >= N, as in texts that define convergence by n >= N (the smallest N is one more, and the verdict, offender, hint and rule check use n >= N). Functions at infinity always use x > N.
boundNamestring"M"Infinite mode: letter for the bound (e.g. "N" when the text writes f(x) > N).
presets{label: string, f?, pieces?, numerator?, denominator?, terms?, lower?, upper?, a?, valueAt?, L?, secondL?, sequence?, sequences?, rule?, direction?, xRange?, yRange?}[]noneExamples to switch between with a dropdown (2 or more); the first is shown first. A preset that names a function replaces the base function (and its valueAt and bounds).
xRange[number, number]a ± 2; [0, 50] at infinity; [0, n] for sequencesVisible x range (also the search radius for delta).
yRange[number, number]fitted to the graphVisible y range.
controlsstring[]all controls shownIds from the controls registry to show (core ids always show). Absent: everything is shown, and the opt-in readouts (verdict, continuity checklist, discontinuity type, feet) follow their show* props.