Polynomial long division: Difference between revisions

Content added Content deleted
(→‎{{header|Fortran}}: adding GAP (built-in))
Line 551: Line 551:
=={{header|GAP}}==
=={{header|GAP}}==
GAP has built-in functions for computations with polynomials.
GAP has built-in functions for computations with polynomials.
<lang gap>
<lang gap>x := Indeterminate(Rationals, "x");
x := Indeterminate(Rationals, "x");
p := x^11 + 3*x^8 + 7*x^2 + 3;
p := x^11 + 3*x^8 + 7*x^2 + 3;
q := x^7 + 5*x^3 + 1;
q := x^7 + 5*x^3 + 1;