# poly-derivative **Repository Path**: ArkTSCentralRepository/poly-derivative ## Basic Information - **Project Name**: poly-derivative - **Description**: Computes the derivative a polynomial. Formally the same thing as multiplying by the index and shifting left. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-01 - **Last Updated**: 2026-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # poly-derivative 基于[poly-derivative](https://www.npmjs.com/package/poly-derivative)原库1.0.0版本进行适配 > Computes the derivative a polynomial. Formally the same thing as multiplying by the index and shifting left. ## Install ```sh ohpm install poly-derivative ``` ## Example Compute the derivative of the polynomial `1 + 2*x + 3*x^2 + 4*x^3`: ```typescript import polyDerivative from 'poly-derivative'; console.log(polyDerivative([1, 2, 3, 4])); ``` ### Output ``` [ 2, 6, 12 ] ``` ## API #### `polyDerivative(poly: number[], result?: number[]): number[]` Computes the derivative of a polynomial, with coefficients represented in increasing order. * `poly` are the coefficients of the polynomial **Returns** The derivative of the polynomial # License (c) 2013 Mikola Lysenko. MIT License