clausen


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

Cl2(x) = - integral ( 0 < s < x ) log ( abs ( 2 sin ( x / 2 ) ) ) dx

The Clausen function is periodic, with period 2 pi.

Licensing:

The computer code and data files made available on this web page are distributed under the MIT license

Languages:

clausen is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

chebyshev_polynomial, a python code which considers the chebyshev polynomials t(i,x), u(i,x), v(i,x) and w(i,x). functions are provided to evaluate the polynomials, determine their zeros, produce their polynomial coefficients, produce related quadrature rules, project other functions onto these polynomial bases, and integrate double and triple products of the polynomials.

fn, a python code which approximates elementary and special functions using chebyshev polynomials; functions include airy, bessel i, j, k and y, beta, confluent hypergeometric, error, gamma, log gamma, pochhammer, spence; integrals include hyperbolic cosine, cosine, dawson, exponential, logarithmic, hyperbolic sine, sine; by wayne fullerton.

polpak, a python code which evaluates a variety of mathematical functions, including chebyshev, gegenbauer, hermite, jacobi, laguerre, legendre polynomials, and the collatz sequence.

test_values, a python code which supplies test values of various mathematical functions.

Reference:

  1. Kurt Koelbig,
    Chebyshev coefficients for the Clausen function Cl2(x),
    Journal of Computational and Applied Mathematics,
    Volume 64, Number 3, 1995, pages 295-297.

Source Code:


Last revised on 20 January 2020.