1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // Copyright (C) 2013 Laszlo Papp <lpapp@kde.org> |
3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
4 | |
5 | #include <QtCore/qmath.h> |
6 | |
7 | QT_BEGIN_NAMESPACE |
8 | |
9 | const qreal qt_sine_table[QT_SINE_TABLE_SIZE] = { |
10 | qreal(0.0), |
11 | qreal(0.024541228522912288), |
12 | qreal(0.049067674327418015), |
13 | qreal(0.073564563599667426), |
14 | qreal(0.098017140329560604), |
15 | qreal(0.1224106751992162), |
16 | qreal(0.14673047445536175), |
17 | qreal(0.17096188876030122), |
18 | qreal(0.19509032201612825), |
19 | qreal(0.2191012401568698), |
20 | qreal(0.24298017990326387), |
21 | qreal(0.26671275747489837), |
22 | qreal(0.29028467725446233), |
23 | qreal(0.31368174039889152), |
24 | qreal(0.33688985339222005), |
25 | qreal(0.35989503653498811), |
26 | qreal(0.38268343236508978), |
27 | qreal(0.40524131400498986), |
28 | qreal(0.42755509343028208), |
29 | qreal(0.44961132965460654), |
30 | qreal(0.47139673682599764), |
31 | qreal(0.49289819222978404), |
32 | qreal(0.51410274419322166), |
33 | qreal(0.53499761988709715), |
34 | qreal(0.55557023301960218), |
35 | qreal(0.57580819141784534), |
36 | qreal(0.59569930449243336), |
37 | qreal(0.61523159058062682), |
38 | qreal(0.63439328416364549), |
39 | qreal(0.65317284295377676), |
40 | qreal(0.67155895484701833), |
41 | qreal(0.68954054473706683), |
42 | qreal(0.70710678118654746), |
43 | qreal(0.72424708295146689), |
44 | qreal(0.74095112535495911), |
45 | qreal(0.75720884650648446), |
46 | qreal(0.77301045336273699), |
47 | qreal(0.78834642762660623), |
48 | qreal(0.80320753148064483), |
49 | qreal(0.81758481315158371), |
50 | qreal(0.83146961230254524), |
51 | qreal(0.84485356524970701), |
52 | qreal(0.85772861000027212), |
53 | qreal(0.87008699110871135), |
54 | qreal(0.88192126434835494), |
55 | qreal(0.89322430119551532), |
56 | qreal(0.90398929312344334), |
57 | qreal(0.91420975570353069), |
58 | qreal(0.92387953251128674), |
59 | qreal(0.93299279883473885), |
60 | qreal(0.94154406518302081), |
61 | qreal(0.94952818059303667), |
62 | qreal(0.95694033573220894), |
63 | qreal(0.96377606579543984), |
64 | qreal(0.97003125319454397), |
65 | qreal(0.97570213003852857), |
66 | qreal(0.98078528040323043), |
67 | qreal(0.98527764238894122), |
68 | qreal(0.98917650996478101), |
69 | qreal(0.99247953459870997), |
70 | qreal(0.99518472667219682), |
71 | qreal(0.99729045667869021), |
72 | qreal(0.99879545620517241), |
73 | qreal(0.99969881869620425), |
74 | qreal(1.0), |
75 | qreal(0.99969881869620425), |
76 | qreal(0.99879545620517241), |
77 | qreal(0.99729045667869021), |
78 | qreal(0.99518472667219693), |
79 | qreal(0.99247953459870997), |
80 | qreal(0.98917650996478101), |
81 | qreal(0.98527764238894122), |
82 | qreal(0.98078528040323043), |
83 | qreal(0.97570213003852857), |
84 | qreal(0.97003125319454397), |
85 | qreal(0.96377606579543984), |
86 | qreal(0.95694033573220894), |
87 | qreal(0.94952818059303667), |
88 | qreal(0.94154406518302081), |
89 | qreal(0.93299279883473885), |
90 | qreal(0.92387953251128674), |
91 | qreal(0.91420975570353069), |
92 | qreal(0.90398929312344345), |
93 | qreal(0.89322430119551521), |
94 | qreal(0.88192126434835505), |
95 | qreal(0.87008699110871146), |
96 | qreal(0.85772861000027212), |
97 | qreal(0.84485356524970723), |
98 | qreal(0.83146961230254546), |
99 | qreal(0.81758481315158371), |
100 | qreal(0.80320753148064494), |
101 | qreal(0.78834642762660634), |
102 | qreal(0.7730104533627371), |
103 | qreal(0.75720884650648468), |
104 | qreal(0.74095112535495899), |
105 | qreal(0.72424708295146689), |
106 | qreal(0.70710678118654757), |
107 | qreal(0.68954054473706705), |
108 | qreal(0.67155895484701855), |
109 | qreal(0.65317284295377664), |
110 | qreal(0.63439328416364549), |
111 | qreal(0.61523159058062693), |
112 | qreal(0.59569930449243347), |
113 | qreal(0.57580819141784545), |
114 | qreal(0.55557023301960218), |
115 | qreal(0.53499761988709715), |
116 | qreal(0.51410274419322177), |
117 | qreal(0.49289819222978415), |
118 | qreal(0.47139673682599786), |
119 | qreal(0.44961132965460687), |
120 | qreal(0.42755509343028203), |
121 | qreal(0.40524131400498992), |
122 | qreal(0.38268343236508989), |
123 | qreal(0.35989503653498833), |
124 | qreal(0.33688985339222033), |
125 | qreal(0.31368174039889141), |
126 | qreal(0.29028467725446239), |
127 | qreal(0.26671275747489848), |
128 | qreal(0.24298017990326407), |
129 | qreal(0.21910124015687005), |
130 | qreal(0.19509032201612861), |
131 | qreal(0.17096188876030122), |
132 | qreal(0.1467304744553618), |
133 | qreal(0.12241067519921635), |
134 | qreal(0.098017140329560826), |
135 | qreal(0.073564563599667732), |
136 | qreal(0.049067674327417966), |
137 | qreal(0.024541228522912326), |
138 | qreal(0.0), |
139 | qreal(-0.02454122852291208), |
140 | qreal(-0.049067674327417724), |
141 | qreal(-0.073564563599667496), |
142 | qreal(-0.09801714032956059), |
143 | qreal(-0.1224106751992161), |
144 | qreal(-0.14673047445536158), |
145 | qreal(-0.17096188876030097), |
146 | qreal(-0.19509032201612836), |
147 | qreal(-0.2191012401568698), |
148 | qreal(-0.24298017990326382), |
149 | qreal(-0.26671275747489825), |
150 | qreal(-0.29028467725446211), |
151 | qreal(-0.31368174039889118), |
152 | qreal(-0.33688985339222011), |
153 | qreal(-0.35989503653498811), |
154 | qreal(-0.38268343236508967), |
155 | qreal(-0.40524131400498969), |
156 | qreal(-0.42755509343028181), |
157 | qreal(-0.44961132965460665), |
158 | qreal(-0.47139673682599764), |
159 | qreal(-0.49289819222978393), |
160 | qreal(-0.51410274419322155), |
161 | qreal(-0.53499761988709693), |
162 | qreal(-0.55557023301960196), |
163 | qreal(-0.57580819141784534), |
164 | qreal(-0.59569930449243325), |
165 | qreal(-0.61523159058062671), |
166 | qreal(-0.63439328416364527), |
167 | qreal(-0.65317284295377653), |
168 | qreal(-0.67155895484701844), |
169 | qreal(-0.68954054473706683), |
170 | qreal(-0.70710678118654746), |
171 | qreal(-0.72424708295146678), |
172 | qreal(-0.74095112535495888), |
173 | qreal(-0.75720884650648423), |
174 | qreal(-0.77301045336273666), |
175 | qreal(-0.78834642762660589), |
176 | qreal(-0.80320753148064505), |
177 | qreal(-0.81758481315158382), |
178 | qreal(-0.83146961230254524), |
179 | qreal(-0.84485356524970701), |
180 | qreal(-0.85772861000027201), |
181 | qreal(-0.87008699110871135), |
182 | qreal(-0.88192126434835494), |
183 | qreal(-0.89322430119551521), |
184 | qreal(-0.90398929312344312), |
185 | qreal(-0.91420975570353047), |
186 | qreal(-0.92387953251128652), |
187 | qreal(-0.93299279883473896), |
188 | qreal(-0.94154406518302081), |
189 | qreal(-0.94952818059303667), |
190 | qreal(-0.95694033573220882), |
191 | qreal(-0.96377606579543984), |
192 | qreal(-0.97003125319454397), |
193 | qreal(-0.97570213003852846), |
194 | qreal(-0.98078528040323032), |
195 | qreal(-0.98527764238894111), |
196 | qreal(-0.9891765099647809), |
197 | qreal(-0.99247953459871008), |
198 | qreal(-0.99518472667219693), |
199 | qreal(-0.99729045667869021), |
200 | qreal(-0.99879545620517241), |
201 | qreal(-0.99969881869620425), |
202 | qreal(-1.0), |
203 | qreal(-0.99969881869620425), |
204 | qreal(-0.99879545620517241), |
205 | qreal(-0.99729045667869021), |
206 | qreal(-0.99518472667219693), |
207 | qreal(-0.99247953459871008), |
208 | qreal(-0.9891765099647809), |
209 | qreal(-0.98527764238894122), |
210 | qreal(-0.98078528040323043), |
211 | qreal(-0.97570213003852857), |
212 | qreal(-0.97003125319454397), |
213 | qreal(-0.96377606579543995), |
214 | qreal(-0.95694033573220894), |
215 | qreal(-0.94952818059303679), |
216 | qreal(-0.94154406518302092), |
217 | qreal(-0.93299279883473907), |
218 | qreal(-0.92387953251128663), |
219 | qreal(-0.91420975570353058), |
220 | qreal(-0.90398929312344334), |
221 | qreal(-0.89322430119551532), |
222 | qreal(-0.88192126434835505), |
223 | qreal(-0.87008699110871146), |
224 | qreal(-0.85772861000027223), |
225 | qreal(-0.84485356524970723), |
226 | qreal(-0.83146961230254546), |
227 | qreal(-0.81758481315158404), |
228 | qreal(-0.80320753148064528), |
229 | qreal(-0.78834642762660612), |
230 | qreal(-0.77301045336273688), |
231 | qreal(-0.75720884650648457), |
232 | qreal(-0.74095112535495911), |
233 | qreal(-0.724247082951467), |
234 | qreal(-0.70710678118654768), |
235 | qreal(-0.68954054473706716), |
236 | qreal(-0.67155895484701866), |
237 | qreal(-0.65317284295377709), |
238 | qreal(-0.63439328416364593), |
239 | qreal(-0.61523159058062737), |
240 | qreal(-0.59569930449243325), |
241 | qreal(-0.57580819141784523), |
242 | qreal(-0.55557023301960218), |
243 | qreal(-0.53499761988709726), |
244 | qreal(-0.51410274419322188), |
245 | qreal(-0.49289819222978426), |
246 | qreal(-0.47139673682599792), |
247 | qreal(-0.44961132965460698), |
248 | qreal(-0.42755509343028253), |
249 | qreal(-0.40524131400499042), |
250 | qreal(-0.38268343236509039), |
251 | qreal(-0.359895036534988), |
252 | qreal(-0.33688985339222), |
253 | qreal(-0.31368174039889152), |
254 | qreal(-0.2902846772544625), |
255 | qreal(-0.26671275747489859), |
256 | qreal(-0.24298017990326418), |
257 | qreal(-0.21910124015687016), |
258 | qreal(-0.19509032201612872), |
259 | qreal(-0.17096188876030177), |
260 | qreal(-0.14673047445536239), |
261 | qreal(-0.12241067519921603), |
262 | qreal(-0.098017140329560506), |
263 | qreal(-0.073564563599667412), |
264 | qreal(-0.049067674327418091), |
265 | qreal(-0.024541228522912448) |
266 | }; |
267 | |
268 | QT_END_NAMESPACE |
269 | |