Skip to content

eggzec/polpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polpack

Special Functions and Recursively-Defined Polynomial Families for Python

Tests Documentation codecov

License: LGPL-2.1 PyPI Downloads Python versions

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.

Quick example

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}")

Installation

pip install polpack

Requires Python 3.10+ and NumPy. See the full installation guide for conda, poetry, and source builds.

Documentation

  • Theory — mathematical background, polynomial families, and special functions
  • Quickstart — runnable examples
  • API Reference — function signatures and parameters
  • References — literature citations

License

LGPL-2.1 — see LICENSE.