Polynomial Division Stepper
Long division of polynomials stepped one leading term at a time over Q, Z, F_p or Z_m: the learner steps, finishes or edits f, g and the coefficient ring, and sees each step cancel the leading term, stall when the divisor's leading coefficient is not a unit, the remainder equal f(a) for x - a (with a slider and synthetic division), or an element of F(alpha) reduced modulo the minimal polynomial to its normal form.
Used in: Ring Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Polynomial division in ℚ[x]" (normal-form: "Normal form in ℚ(α)") | Title bar text. |
| controls | string[] | all controls shown | Ids of the hideable readouts, panels and toggles to show (see the controls registry, e.g. readout.remainder-value, readout.root, panel.horner, readout.coordinates, panel.inverse). Core controls always show. Page building fills this from the subject's topic scope. |
| mode | "divide" | "normal-form" | inferred: element or minimalPolynomial -> normal-form, else divide | divide: divide dividend by divisor step by step. normal-form: reduce an element of F(α), written in alpha, modulo the minimal polynomial to c_0 + c_1 α + ... + c_{n-1} α^{n-1}. |
| dividend | string | "x^4 + 2x^3 + x + 3" | Divide mode: the dividend f, one variable (any letter), e.g. "x^5 + 2*x^3 + x + 1", "2x^4 + x^3 - 3x + 5". Rational coefficients such as 1/2 or 0.5 are allowed when the ring has them. |
| divisor | string | "x^2 + x + 1" | Divide mode: the nonzero divisor g, same variable. "x - a" with a one-letter parameter (see parameters) or "x - 2" turns on the remainder / root readouts and synthetic division. |
| ring | string | number | "Q" | Coefficient ring: "Q" (exact rationals; "R" is read as Q), "Z", "F_p" for a prime p ("F_7", "GF(7)"), "Z_m" ("Z_6", "Z/6", or a number 6). Over Z and Z_m a step stalls when the divisor's leading coefficient cannot cancel the leading coefficient of r, and over Z_m it may be non-unique. In normal-form mode this is the base field F. |
| step | number | 0 | Number of division steps already applied at start (a large number such as 99 shows the finished division). |
| parameters | {name, min, max, initial?, step?}[] | [] | Divide mode: sliders for one-letter names used in dividend or divisor, e.g. [{"name": "a", "min": -3, "max": 4, "initial": 1}] with divisor "x - a". Integer ranges step by 1 unless step is given. |
| showHorner | boolean | false | Divide mode with divisor x - a: start with the synthetic division (Horner) table switched on. The learner can switch it on or off. |
| compare | string[] | none | Divide mode: a second division [dividend, divisor] in the same ring, shown finished below (e.g. a non-monic divisor over Z that stalls next to a monic one that works). |
| element | string | "(1 + alpha)^4" | Normal-form mode: the element β of F(α) as an expression in alpha (or α, or the minimal polynomial's variable), e.g. "x^3", "(1 + alpha)^4", "1/(1 + alpha)". Division by a polynomial in alpha is inverted modulo the minimal polynomial (F must be a field). |
| minimalPolynomial | string | "x^3 - 2" | Normal-form mode: the minimal polynomial m(x) of α over F (degree 1 to 12). Its degree is the size of the power basis. |
| alpha | string | "cbrt(2)" with the default polynomial, else none | Normal-form mode: α as a real number, e.g. "cbrt(2)", "1 + sqrt(2)" (functions as in the shared expression parser). Shown in the header and used for the numerical check; a warning appears when it is not a root of the minimal polynomial. Over Q only. |
| showInverse | boolean | true | Normal-form mode, element with a polynomial denominator h(α): show the extended Euclidean table that inverts h modulo m (false shows only the resulting inverse). |
| showEvaluation | boolean | false | Normal-form mode with a real alpha: start with the numerical check (β and r(α) evaluated at α) switched on. |
PreviousNext