C99实现的克莱森求和
A C99 Implementation of the Clausen Sums
AI总结:
本文提出一个C99程序计算非负整数指数j和实数参数x的克莱森求和,通过三种主要情况处理:大j时直接截断求和,小j时评估关联多项式或构造Chebyshev级数。
摘要:
本文介绍了一个C99程序,用于计算非负整数指数j和实数参数x的克莱森求和。该实现分为三个主要情况。对于较大的j,采用直接截断求和;对于较小的j,如果适用则评估x的关联多项式,否则通过重复积分一个截断的Chebyshev表示形式来构造Chebyshev级数并进行评估。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。