Polynomial Root Table

Value table of a polynomial over Z_n or F_p. The learner types a polynomial, moves the modulus, clicks a column to evaluate there and sees the roots counted against the degree; dividing out x − a for a root shows the Factor Theorem peeling off factors, and over Z_8 or Z_6 roots survive that no factor accounts for. Later readouts give the root test for irreducibility and the rootless 1 + ∏(x − a) that keeps every finite field from being algebraically closed.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestring"Roots of a polynomial, value by value"Title bar text.
controlsstring[]all controls shownIds of the hideable controls and readouts to show (see the controls registry, e.g. panel.factor, readout.domain, readout.degree-bound, readout.irreducible, readout.root-test). Core controls always show. Page building fills this from the subject's topic scope.
polynomialstring"x^2 - 1"Polynomial in one variable with integer coefficients, e.g. "x^3 + x + 3", "x(x - 1)(x - 2) + 1", "2x^2 - 3". A left side "f(x) =" is ignored. Coefficients are reduced mod n.
modulusnumber8n: the table runs over Z_n (written F_p when n is prime). Whole number from 2 to 97.
comparenumber | {polynomial?: string, modulus?: number}noneA second table side by side. A number is another modulus for the same polynomial (e.g. modulus 8, compare 7: Z_8 against F_7). An object gives a second polynomial g and its modulus (e.g. {"polynomial": "x^4 + x^2 + 1", "modulus": 2}).
factorOutnumber | number[]noneRoots whose linear factors x − a are already divided out at start, in order (e.g. 5, or [1, 1] for a double root). The table then also shows the quotient q with f = (x − a)·q. A value that is not a root of the current quotient is reported and the division stops there.
selectednumbernoneElement a whose column is selected at start, with its evaluation f(a) written out (the learner clicks any column to change it).
editablebooleantruefalse hides the polynomial field and the modulus slider (the learner can still click columns and divide out roots).
maxModulusnumber30Upper end of the modulus slider (raised to the modulus if that is larger; at most 97).