Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Trigonometric tables
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== A better, but still imperfect, recurrence formula == {{original research|date=December 2018}} A simple recurrence formula to generate trigonometric tables is based on [[Euler's formula]] and the relation: :<math>e^{i(\theta + \Delta)} = e^{i\theta} \times e^{i\Delta\theta}</math> This leads to the following recurrence to compute trigonometric values ''s''<sub>''n''</sub> and ''c''<sub>''n''</sub> as above: :''c''<sub>0</sub> = 1 :''s''<sub>0</sub> = 0 :''c''<sub>''n''+1</sub> = ''w''<sub>''r''</sub> ''c''<sub>''n''</sub> − ''w''<sub>''i''</sub> ''s''<sub>''n''</sub> :''s''<sub>''n''+1</sub> = ''w''<sub>''i''</sub> ''c''<sub>''n''</sub> + ''w''<sub>''r''</sub> ''s''<sub>''n''</sub> for ''n'' = 0, ..., ''N'' − 1, where ''w''<sub>''r''</sub> = cos(2π/''N'') and ''w''<sub>''i''</sub> = sin(2π/''N''). These two starting trigonometric values are usually computed using existing library functions (but could also be found e.g. by employing [[Newton's method]] in the complex plane to solve for the primitive [[root of unity|root]] of ''z''<sup>''N''</sup> − 1). This method would produce an ''exact'' table in exact arithmetic, but has errors in finite-precision [[floating-point]] arithmetic. In fact, the errors grow as O(ε ''N'') (in both the worst and average cases), where ε is the floating-point precision. A significant improvement is to use the following modification to the above, a trick (due to Singleton<ref>{{harvnb|Singleton|1967}}</ref>) often used to generate trigonometric values for FFT implementations: :''c''<sub>0</sub> = 1 :''s''<sub>0</sub> = 0 :''c''<sub>''n''+1</sub> = ''c''<sub>''n''</sub> − (α ''c''<sub>''n''</sub> + β ''s''<sub>''n''</sub>) :''s''<sub>''n''+1</sub> = ''s''<sub>''n''</sub> + (β ''c''<sub>''n''</sub> − α ''s''<sub>''n''</sub>) where α = 2 sin<sup>2</sup>(π/''N'') and β = sin(2π/''N''). The errors of this method are much smaller, O(ε √''N'') on average and O(ε ''N'') in the worst case, but this is still large enough to substantially degrade the accuracy of FFTs of large sizes.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Trigonometric tables
(section)
Add topic