Function Sequence Explorer
A sequence of functions f_n (or the partial sums S_n of a series) drawn against its limit f. The learner slides or plays n, drags a probe to see how long each point takes to settle within epsilon, and drags the set K under an epsilon-tube to watch the largest gap sup_K |f_n - f| (uniform convergence). Optional panels show that gap against n, the areas under f_n against n (limit and integral), the derivatives f_n' against their limit, a Dini check and a Weierstrass M-test readout; presets switch between contrasting examples.
Used in: Mathematical Analysis
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "A sequence of functions" (series: "Partial sums of a series of functions") | Card title. |
| controls | string[] | all controls shown | Ids of the hideable parts to show (see the controls registry: panel.tube, readout.sup, readout.uniform-n, panel.sup-sequence, readout.dini, panel.area, panel.derivative, readout.derivative-sup, readout.m-test). Core controls always show. Page building fills this from the subject's topic scope. |
| family | string | "x^n" | Sequence mode: f_n(x) as an expression in x and n (a leading "y =" or "f_n(x) =" is ignored). Grammar of pilot/_core/expr: + - * / ^, implicit products, |x|, abs sqrt exp ln sin cos max min sign floor if(cond, a, b), pi, e. |
| term | string | none | Series mode (wins over family): the k-th term u_k(x) in x and k; the component draws the partial sums S_n(x) = sum_{k=from}^{n} u_k(x). |
| from | number | 1 | Series mode: the first index k of the sum (0 for a power series). |
| limit | string | estimated numerically (f_n at n = 10^6, or 4000 terms of the series) | The pointwise limit f(x) (the sum, for a series), in x. Piecewise limits with if(), e.g. "if(x < 1, 0, 1)" for x^n on [0, 1]. |
| domain | [number, number] | K, else [0, 1] | The x range drawn. Entries may be constant expressions such as "-pi". |
| yRange | [number, number] | auto from f and the first and initial f_n | The y range drawn (set it for spikes whose height grows with n). |
| K | [number, number] | string | the domain | The set on which sup |f_n - f| is measured and the epsilon-tube drawn (also the interval of the area panel): [a, b] or an interval string such as "[0, 1)" or "(-1, 1)" (open ends are approached, not included). The learner drags its ends. |
| n | number | 5 | The n shown at start. |
| nMin | number | 1 (series: from) | Smallest n on the slider. |
| nMax | number | 50 | Largest n on the slider; every 'from n = N on' readout is checked up to nMax (at most 400). |
| epsilon | number | 0.1 | Starting tolerance epsilon (slider). |
| epsilonMax | number | 0.5 | Largest epsilon on the slider. |
| parameters | {name, min, max, initial?, step?, label?}[] | [] | Extra named parameters of the formulas, each with a slider. Entries named n or epsilon set those sliders' ranges and start values instead (the corpus's draft shape). |
| probe | number | 80% across the domain | Start position of the draggable probe x (pointwise view: f_n(x), f(x), and the n from which the gap stays below epsilon). |
| supError | string | number | none | Verified formula for sup_K |f_n - f| in n (e.g. "0.5^n", "1/(2*sqrt(n))", "inf"); shown next to the computed value. |
| supAt | string | number | none | Where that supremum is attained, as an expression in n (e.g. "1/sqrt(n)"). |
| showSupPlot | boolean | false | Show the panel of M_n = sup_K |f_n - f| against n, with epsilon as a line (and the supError formula as hollow markers). |
| monotone | "increasing" | "decreasing" | none | Asks for the Dini check (the readout tests monotonicity in n, compactness of K and continuity of the limit itself). |
| showArea | boolean | false (true when limitArea is given) | Shade the area under f_n over K and show the panel of the integral of f_n over K against n, next to the integral of the limit. |
| limitArea | number | string | computed numerically | Verified integral of the limit over K (e.g. 0 or "ln(2)"); also switches the area panel on. |
| showDerivative | boolean | false (true when a derivative prop is given) | Show the derivative panel: f_n' (or S_n') and their limit g, with sup_K |f_n' - g|. |
| derivative | string | numerical | Sequence mode: f_n'(x) in x and n. |
| termDerivative | string | numerical | Series mode: u_k'(x) in x and k (the derivative series is summed from `from` to n). |
| derivativeLimit | string | estimated numerically | The limit g(x) of the derivatives, in x (e.g. "sign(x)"). |
| derivativeYRange | [number, number] | auto | y range of the derivative panel. |
| bound | string | none | Series mode: the Weierstrass bound M_k in k; the M-test readout checks |u_k| <= M_k on K and compares the tail sum of M_k with the actual sup gap. |
| tailBound | string | none | A verified bound of the tail sum_{k>n} M_k, in n (e.g. "1/n"). |
| presets | {label?, family?, term?, from?, limit?, K?, domain?, yRange?, supError?, supAt?, limitArea?, derivative?, termDerivative?, derivativeLimit?, derivativeYRange?, bound?, tailBound?, monotone?, probe?, note?}[] | [] | Contrast examples the learner switches to (the props themselves are the first choice). A preset that sets family or term replaces all formula fields; otherwise it inherits them. null clears an inherited field. Labels default to the formula or K. |
| preset | number | 0 | Choice shown at start: 0 = the props themselves, i = presets[i - 1]. |
| label | string | the formula or K | Label of the first choice in the example switcher ($...$ TeX allowed). |
| note | string | none | Caption under the component ($...$ TeX allowed). |
PreviousNext