Polynomial derivative: Difference between revisions
→{{header|Factor}}: update for new test cases
(Added XPL0 example.) |
(→{{header|Factor}}: update for new test cases) |
||
Line 3:
=={{header|Factor}}==
<lang factor>USING: generalizations kernel math.polynomials prettyprint ;
{ 5 }
{ 4 -3 }
{ -1 6 5 }
{ -4 3 -2 1 }
{ 1 1 0 -1 -1 }
[ pdiff ] 5 napply .s clear</lang>
{{out}}
<pre>
{ }
{ -3 }
{ 6 10 }
{ 3 -4 3 }
{ 1 0 -3 -4 }
</pre>
|