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

PropTypeDefaultDescription
titlestring"A sequence of functions" (series: "Partial sums of a series of functions")Card title.
controlsstring[]all controls shownIds 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.
familystring"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.
termstringnoneSeries 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).
fromnumber1Series mode: the first index k of the sum (0 for a power series).
limitstringestimated 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_nThe y range drawn (set it for spikes whose height grows with n).
K[number, number] | stringthe domainThe 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.
nnumber5The n shown at start.
nMinnumber1 (series: from)Smallest n on the slider.
nMaxnumber50Largest n on the slider; every 'from n = N on' readout is checked up to nMax (at most 400).
epsilonnumber0.1Starting tolerance epsilon (slider).
epsilonMaxnumber0.5Largest 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).
probenumber80% across the domainStart position of the draggable probe x (pointwise view: f_n(x), f(x), and the n from which the gap stays below epsilon).
supErrorstring | numbernoneVerified 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.
supAtstring | numbernoneWhere that supremum is attained, as an expression in n (e.g. "1/sqrt(n)").
showSupPlotbooleanfalseShow 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"noneAsks for the Dini check (the readout tests monotonicity in n, compactness of K and continuity of the limit itself).
showAreabooleanfalse (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.
limitAreanumber | stringcomputed numericallyVerified integral of the limit over K (e.g. 0 or "ln(2)"); also switches the area panel on.
showDerivativebooleanfalse (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|.
derivativestringnumericalSequence mode: f_n'(x) in x and n.
termDerivativestringnumericalSeries mode: u_k'(x) in x and k (the derivative series is summed from `from` to n).
derivativeLimitstringestimated numericallyThe limit g(x) of the derivatives, in x (e.g. "sign(x)").
derivativeYRange[number, number]autoy range of the derivative panel.
boundstringnoneSeries 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.
tailBoundstringnoneA 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.
presetnumber0Choice shown at start: 0 = the props themselves, i = presets[i - 1].
labelstringthe formula or KLabel of the first choice in the example switcher ($...$ TeX allowed).
notestringnoneCaption under the component ($...$ TeX allowed).