polpak, a C code which evaluates a variety of mathematical functions, polynomials, and sequences, including Bell, Benford, Bernoulli, Bernstein, Cardan, Catalan, Charlier, Chebyshev, Collatz, Delannoy, Euler, Fibonacci, Gegenbauer, Gudermannian, Hermite, Hofstadter, Jacobi, Krawtchouk, Laguerre, Lambert, Legendre, Lerch, Meixner, Mertens, Moebius, Motzkin, Phi, Stirling, Tau, Tribonacci, Zernike.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


polpak is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and an Octave version and a Python version

Related Data and Programs:


bernstein_polynomial, a C code which evaluates the Bernstein polynomials, useful for uniform approximation of functions;

besselj, a C code which evaluates Bessel J functions of noninteger order.

clausen, a C code which evaluates a Chebyshev interpolant to the Clausen function Cl2(x).

cordic, a C code which uses the CORDIC method to compute certain elementary functions.

fn, a C code which approximates elementary and special functions using Chebyshev polynomials, by Wayne Fullerton.

legendre_product_polynomial, a C code which defines Legendre product polynomials, creating a multivariate polynomial as the product of univariate Legendre polynomials.

lobatto_polynomial, a C code which evaluates Lobatto polynomials, similar to Legendre polynomials except that they are zero at both endpoints.

test_values, a C code which stores values of many mathematical functions, and can be used for testing.


  1. Milton Abramowitz, Irene Stegun,
    Handbook of Mathematical Functions,
    National Bureau of Standards, 1964,
    ISBN: 0-486-61272-4,
    LC: QA47.A34.

Source Code:

Last revised on 25 July 2019.