Polynomial derivative: Difference between revisions

(Realize in F#)
Line 63:
<syntaxhighlight lang="fsharp">
// Polynomial derivative. Nigel Galloway: January 4th., 2023
let n=[[5];[4;-3];[-1;6;5];[-4;3;-2;1];[1;1;0;-1;-1]]|>List.iter((List.mapi(fun n g->n*g)>>List.skip 1>>printfn "%A"))
</syntaxhighlight>
{{out}}
<pre>
[0]
[0; -3]
[0; 6; 10]
[0; 3; -4; 3]
[0; 1; 0; -3; -4]
</pre>
 
=={{header|Factor}}==
<syntaxhighlight lang="factor">USING: generalizations kernel math.polynomials prettyprint ;
2,172

edits