# legendre-poly **Repository Path**: ArkTSCentralRepository/legendre-poly ## Basic Information - **Project Name**: legendre-poly - **Description**: Coefficients of Legendre polynomials - **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-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # legendre-poly 基于[legendre-poly](https://www.npmjs.com/package/legendre-poly)原库1.0.0版本进行适配 > Returns the coefficients of the nth [Legendre polynomial](http://en.wikipedia.org/wiki/Legendre_polynomials). ## Install ```sh ohpm install legendre-poly ``` ## Example ```typescript import LegendreP from "legendre-poly"; console.log(LegendreP(0)); console.log(LegendreP(1)); console.log(LegendreP(2)); ``` ### Output ``` [1] [0, 1] [-0.5, 0, 1.5] ``` ## API #### `LegendreP(n)` Returns the coefficients of the nth Legendre polynomial in ascending degree. ## License (c) 2013 Mikola Lysenko. MIT License