Anonymous user
Polynomial long division: Difference between revisions
→{{header|OCaml}}
m (→{{header|E}}: Add argument to {{lines too long}}.) |
|||
Line 895:
This means that <math>-42-12 x^2+x^3</math> divided by <math>-3+x</math> produces <math>-27-9 x+x^2</math> with a remainder of <math>-123</math>.
=={{header|Mathematica}}==
<lang Mathematica>PolynomialQuotientRemainder[x^3-12 x^2-42,x-3,x]</lang>
output:
<pre>{-27 - 9 x + x^2, -123}</pre>
=={{header|OCaml}}==
|