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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Roots of a polynomial, value by value" | Title bar text. |
| controls | string[] | all controls shown | Ids 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. |
| polynomial | string | "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. |
| modulus | number | 8 | n: the table runs over Z_n (written F_p when n is prime). Whole number from 2 to 97. |
| compare | number | {polynomial?: string, modulus?: number} | none | A 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}). |
| factorOut | number | number[] | none | Roots 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. |
| selected | number | none | Element a whose column is selected at start, with its evaluation f(a) written out (the learner clicks any column to change it). |
| editable | boolean | true | false hides the polynomial field and the modulus slider (the learner can still click columns and divide out roots). |
| maxModulus | number | 30 | Upper end of the modulus slider (raised to the modulus if that is larger; at most 97). |