フィルターのクリア

Cosine/Sine polynomial summation: Ordinary sum vs. Clenshaw summation

3 ビュー (過去 30 日間)
Bart Boesman
Bart Boesman 2014 年 8 月 6 日
編集済み: Bart Boesman 2014 年 8 月 6 日
Hi all,
I'm interested in knowing whether it is advantageous, specifically in matlab, to sum a cosine/sine polynomial using the clenshaw algorithm or not:
f(x) = sum_k=0:N a_k * cos kx or f(x) = sum_k=1:N a_k * sin kx
x can as well be a single value or an array of (arbitrarily chosen) values.
Many references advice to use special algorithms such as clenshaw summation in stead of simply summing harmonics of sines/cosines, however when implementing both, I don't see much difference both in computation time as accuracy. Tested it for max(N) = 60 at this moment.
Thanks in advance,
Bart

回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by