# poly-mult **Repository Path**: ArkTSCentralRepository/poly-mult ## Basic Information - **Project Name**: poly-mult - **Description**: Multiplies polynomials by brute force - **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-mult 基于[poly-mult](https://www.npmjs.com/package/poly-mult)原库1.0.0版本进行适配 > Brute force polynomial multiplication. ## Install ```sh ohpm install poly-mult ``` ## Example ### Real polynomials Compute `(1 + 2*x) * (1 + x^2)`: ```typescript import mult from "poly-mult"; console.log(mult([1, 2], [1, 0, 1])) ``` #### Output ``` [1, 2, 1, 2] ``` ### Complex polynomials Compute `(i + (1+3i)*x) * (2 + 5i * x^2)` ```typescript import mult from "poly-mult"; console.log(mult( [[0, 1], [1, 3]], [[2, 0, 0], [0, 0, 5]] )) ``` #### Output ``` [[0, 2, -5, -15], [2, 6, 0, 5]] ``` ## API #### `mult(a, b)` Multiplies a pair of polynomials together. This works basically the same as [poly-mult-fft](https://npmjs.org/package/poly-mult-fft), except it is slower but more accurate. # License (c) 2013 Mikola Lysenko. MIT License