Special Functions and Recursively-Defined Polynomial Families for Python
polpack is a high-performance Python library for evaluating special functions and recursively-defined polynomial families. The numerical core is written in Fortran and compiled via f2py, providing efficient routines for mathematical and combinatorial computations.
It includes routines to evaluate classic families such as Bernoulli, Chebyshev, Gegenbauer, Hermite, Laguerre, and Legendre polynomials, among others.
import numpy as np
import polpack
# Example: Compute Bell numbers
bell = np.zeros(11, dtype=np.int32)
polpack.bell(10, bell)
print(f"Bell numbers: {bell}")pip install polpackRequires Python 3.10+ and NumPy. See the full installation guide for conda, poetry, and source builds.
- Theory — mathematical background, polynomial families, and special functions
- Quickstart — runnable examples
- API Reference — function signatures and parameters
- References — literature citations
LGPL-2.1 — see LICENSE.