A C99 Implementation of the Clausen Sums
Abstract
A C99 program is presented which calculates the Clausen sums for non-negative integer indices j and real arguments x. The implementation is split into three major cases. For large j, a direct, truncated summation of the sum is performed. For smaller j, the associate polynomial of x is evaluated if applicable; otherwise a Chebyshev series is constructed by repeated integration of a (truncated) Chebyshev representation of Cl_2(x), and evaluated.
- Publication:
-
arXiv e-prints
- Pub Date:
- September 2013
- DOI:
- 10.48550/arXiv.1309.7504
- arXiv:
- arXiv:1309.7504
- Bibcode:
- 2013arXiv1309.7504M
- Keywords:
-
- Mathematics - Numerical Analysis;
- 33E20;
- 33F05 (Primary) 26-04;
- 65D20 (Secondary)
- E-Print:
- 6 pages, 1 figure, ancillary directory with C program source