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