]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/example/sines.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / math / example / sines.hpp
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
6 // Copyright ???? 2013.
7
8 // Use boost/array if std::array (C++11 feature) is not available.
9 #ifdef BOOST_NO_CXX11_HDR_ARRAY
10 #include <boost/array/array.hpp>
11 #else
12 #include <array>
13 #endif
14
15 // Table of 32 values with 50 decimal digits precision,
16 // generated by program fft_sines_table.cpp.
17
18 #ifdef BOOST_NO_CXX11_HDR_ARRAY
19 static const boost::array<double, 32> sines =
20 #else
21 static const std::array<double, 32> sines =
22 #endif
23 {{
24 1,
25 0.70710678118654752440084436210484903928483593768847,
26 0.38268343236508977172845998403039886676134456248563,
27 0.19509032201612826784828486847702224092769161775195,
28 0.098017140329560601994195563888641845861136673167501,
29 0.049067674327418014254954976942682658314745363025753,
30 0.024541228522912288031734529459282925065466119239451,
31 0.012271538285719926079408261951003212140372319591769,
32 0.0061358846491544753596402345903725809170578863173913,
33 0.003067956762965976270145365490919842518944610213452,
34 0.0015339801862847656123036971502640790799548645752374,
35 0.00076699031874270452693856835794857664314091945206328,
36 0.00038349518757139558907246168118138126339502603496474,
37 0.00019174759731070330743990956198900093346887403385916,
38 9.5873799095977345870517210976476351187065612851145e-05,
39 4.7936899603066884549003990494658872746866687685767e-05,
40 2.3968449808418218729186577165021820094761474895673e-05,
41 1.1984224905069706421521561596988984804731977538387e-05,
42 5.9921124526424278428797118088908617299871778780951e-06,
43 2.9960562263346607504548128083570598118251878683408e-06,
44 1.4980281131690112288542788461553611206917585861527e-06,
45 7.4901405658471572113049856673065563715595930217207e-07,
46 3.7450702829238412390316917908463317739740476297248e-07,
47 1.8725351414619534486882457659356361712045272098287e-07,
48 9.3626757073098082799067286680885620193236507169473e-08,
49 4.681337853654909269511551813854009695950362701667e-08,
50 2.3406689268274552759505493419034844037886207223779e-08,
51 1.1703344634137277181246213503238103798093456639976e-08,
52 5.8516723170686386908097901008341396943900085051757e-09,
53 2.9258361585343193579282304690689559020175857150074e-09,
54 1.4629180792671596805295321618659637103742615227834e-09,
55 7.3145903963357984046044319684941757518633453150407e-10
56 }};