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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode ("Approaching a point", "The ε–δ game", "The ε–N game", "Beat every bound", "Approaching along sequences") | Card title. |
| mode | string | inferred: sequences -> sequence; M or MRange -> infinite; sequence (without f) or ends -> N; epsilon, epsilonRange, rule or terms -> delta; else approach | approach: 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). |
| f | string | "(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}[] | none | Piecewise 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". |
| numerator | string | none | With 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). |
| denominator | string | none | Denominator of a quotient (see numerator). |
| terms | string[] | none | Delta 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. |
| lower | string | none | Lower squeeze bound: a function of x (approach mode, drawn dashed and tabulated) or a sequence in n (N mode, hollow dots). |
| upper | string | none | Upper squeeze bound (see lower). |
| a | number | string | 2 for the default function, else 0 | The point x approaches. A string is evaluated ("sqrt(3)", "pi/2"). |
| valueAt | number | null | f(a) as given by f or pieces | Overrides the value f(a) (filled dot); null makes f undefined at a (a hole). The limit does not change. |
| draggableValue | boolean | false | Approach 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. |
| side | string | "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. |
| table | number[] | boolean | a ± 0.1, a ± 0.01, a ± 0.001 | Approach mode: x values listed in the table (the live inputs and x = a are always added, highlighted); false hides the table. |
| zoom | number | none (no zoom slider) | Approach and sequence modes: largest magnification of the zoom slider around the point (e.g. 1000). |
| L | number | the numerically estimated limit (or f(a)) | Delta and N modes: the candidate limit at the centre of the epsilon band. |
| draggableL | boolean | false | Delta 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. |
| epsilon | number | geometric middle of epsilonRange | Starting epsilon (half-height of the band). |
| epsilonRange | [number, number] | [0.05, 2] (delta), [0.01, 1] (N) | Range of the logarithmic epsilon slider. |
| rule | string | none | A 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. |
| showAnswer | boolean | false | Start with the computed answer revealed (the largest delta, or the smallest cutoff N, for the current tolerance); the learner can toggle it. |
| showFeet | boolean | false | Delta mode: dashed feet where the graph meets y = L ± epsilon nearest to a, with their distances (the smaller is the largest delta). |
| showVerdict | boolean | false | Approach mode: a sentence comparing the one-sided limits and concluding whether the limit exists. |
| showChecklist | boolean | false | Approach mode: the three-part continuity checklist (f(a) defined, limit exists, they agree), plus one-sided continuity rows when side is set. |
| showType | boolean | false | Approach mode: names the kind of discontinuity (removable, jump, infinite, oscillating) or none. |
| showAsymptote | boolean | false | Labels the vertical line x = a as an asymptote when the function is unbounded there. |
| ends | string | "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. |
| secondL | number | estimated limit at -infinity | N mode with ends both: the limit as x -> -infinity when it differs from L (two half bands). |
| sequence | string | none | N mode: the sequence a_n in n (e.g. "1 + (-1)^n/n"). Sequence mode: a single sequence of inputs x_n. |
| sequences | string[] | ["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. |
| nMax | number | 30 (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. |
| M | number | geometric middle of MRange | Infinite mode: the starting bound the values must beat. |
| MRange | [number, number] | [1, 100] | Infinite mode: range of the logarithmic bound slider (positive). |
| direction | string | inferred from the function | Infinite mode: up (f(x) > M, limit infinity) or down (f(x) < -M, limit -infinity). |
| logX | boolean | false | N and infinite modes at infinity: logarithmic x axis (the x range must be positive), for cutoffs like e^M. |
| cutoffName | string | "N" | Letter for the cutoff in x or n (the subject's notation, e.g. "M" when the text writes x > M). |
| cutoffRule | string | "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. |
| boundName | string | "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?}[] | none | Examples 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 sequences | Visible x range (also the search radius for delta). |
| yRange | [number, number] | fitted to the graph | Visible y range. |
| controls | string[] | all controls shown | Ids 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. |
PreviousNext