Calculate the derivative of a polynomial and return it as a new polynomial
Example: $polynomial = new Polynomial([1, -8, 12, 3]); // x³ - 8x² + 12x + 3
$derivative = $polynomial->differentiate(); // 3x² - 16x + 12
public differentiate ( ) : |
||
Результат | The derivative of our polynomial object, also a polynomial object |