sines.hpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Use, modification and distribution are subject to the
  2. // Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt
  4. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // Copyright A N Other, 2019.
  6. // Table of 32 values with 50 decimal digits precision,
  7. // generated by program fft_sines_table.cpp.
  8. #include <array> // std::array
  9. static const std::array<double, 32> sines =
  10. {{
  11. 1,
  12. 0.70710678118654752440084436210484903928483593768847,
  13. 0.38268343236508977172845998403039886676134456248563,
  14. 0.19509032201612826784828486847702224092769161775195,
  15. 0.098017140329560601994195563888641845861136673167501,
  16. 0.049067674327418014254954976942682658314745363025753,
  17. 0.024541228522912288031734529459282925065466119239452,
  18. 0.012271538285719926079408261951003212140372319591769,
  19. 0.0061358846491544753596402345903725809170578863173913,
  20. 0.003067956762965976270145365490919842518944610213452,
  21. 0.0015339801862847656123036971502640790799548645752374,
  22. 0.00076699031874270452693856835794857664314091945206328,
  23. 0.00038349518757139558907246168118138126339502603496474,
  24. 0.00019174759731070330743990956198900093346887403385916,
  25. 9.5873799095977345870517210976476351187065612851145e-05,
  26. 4.7936899603066884549003990494658872746866687685767e-05,
  27. 2.3968449808418218729186577165021820094761474895673e-05,
  28. 1.1984224905069706421521561596988984804731977538387e-05,
  29. 5.9921124526424278428797118088908617299871778780951e-06,
  30. 2.9960562263346607504548128083570598118251878683408e-06,
  31. 1.4980281131690112288542788461553611206917585861527e-06,
  32. 7.4901405658471572113049856673065563715595930217207e-07,
  33. 3.7450702829238412390316917908463317739740476297248e-07,
  34. 1.8725351414619534486882457659356361712045272098286e-07,
  35. 9.3626757073098082799067286680885620193236507169473e-08,
  36. 4.681337853654909269511551813854009695950362701667e-08,
  37. 2.3406689268274552759505493419034844037886207223779e-08,
  38. 1.1703344634137277181246213503238103798093456639976e-08,
  39. 5.8516723170686386908097901008341396943900085051756e-09,
  40. 2.9258361585343193579282304690689559020175857150074e-09,
  41. 1.4629180792671596805295321618659637103742615227834e-09,
  42. 7.3145903963357984046044319684941757518633453150407e-10
  43. }}; // array sines