Subtracts polynomials over GF(p)
c = gf_poly_subtract(a, b, p)
Polynomial over GF(p): a row vector of integer coefficients in 0 .. p-1, constant term first. For instance [1 0 1 1] is 1 + x² + x³. The two polynomials can have different lengths.
Prime number: the characteristic of the field.
Result as a row of coefficients, constant term first, trimmed to its degree (no trailing zeros). The zero polynomial is returned as 0.
gf_poly_subtract(a, b, p) computes a - b, subtracting coefficients of equal degree modulo p.
| Version | Description |
| 2.0.0 | Refactoring of the function/toolbox. Operands of different lengths are accepted and the result is trimmed. |