Polynomial derivative: Difference between revisions

m
added releated task
m (added releated task)
Line 1:
{{draft task}}
Given a polynomial, represented by an ordered list of its coefficients by increasing degree (e.g. [-1, 6, 5] represents 5x<sup>2</sup>+6x-1), calculate the polynomial representing the derivative. For example, the derivative of the aforementioned polynomial is 10x+6, represented by [6, 10]. Test cases: 5, -3x+4, 5x<sup>2</sup>+6x-1, x<sup>3</sup>-2x<sup>2</sup>+3x-4, -x<sup>4</sup>-x<sup>3</sup>+x+1
 
;Related task:
:* &nbsp; [[Polynomial long division]]
 
=={{header|ALGOL 68}}==
7,818

edits