1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Copyright (C) 2013 Laszlo Papp <lpapp@kde.org>
5** Contact: https://www.qt.io/licensing/
6**
7** This file is part of the QtCore module of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial License Usage
11** Licensees holding valid commercial Qt licenses may use this file in
12** accordance with the commercial license agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and The Qt Company. For licensing terms
15** and conditions see https://www.qt.io/terms-conditions. For further
16** information use the contact form at https://www.qt.io/contact-us.
17**
18** GNU Lesser General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU Lesser
20** General Public License version 3 as published by the Free Software
21** Foundation and appearing in the file LICENSE.LGPL3 included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU Lesser General Public License version 3 requirements
24** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
25**
26** GNU General Public License Usage
27** Alternatively, this file may be used under the terms of the GNU
28** General Public License version 2.0 or (at your option) the GNU General
29** Public license version 3 or any later version approved by the KDE Free
30** Qt Foundation. The licenses are as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
32** included in the packaging of this file. Please review the following
33** information to ensure the GNU General Public License requirements will
34** be met: https://www.gnu.org/licenses/gpl-2.0.html and
35** https://www.gnu.org/licenses/gpl-3.0.html.
36**
37** $QT_END_LICENSE$
38**
39****************************************************************************/
40
41#include <QtCore/qmath.h>
42
43QT_BEGIN_NAMESPACE
44
45const qreal qt_sine_table[QT_SINE_TABLE_SIZE] = {
46 qreal(0.0),
47 qreal(0.024541228522912288),
48 qreal(0.049067674327418015),
49 qreal(0.073564563599667426),
50 qreal(0.098017140329560604),
51 qreal(0.1224106751992162),
52 qreal(0.14673047445536175),
53 qreal(0.17096188876030122),
54 qreal(0.19509032201612825),
55 qreal(0.2191012401568698),
56 qreal(0.24298017990326387),
57 qreal(0.26671275747489837),
58 qreal(0.29028467725446233),
59 qreal(0.31368174039889152),
60 qreal(0.33688985339222005),
61 qreal(0.35989503653498811),
62 qreal(0.38268343236508978),
63 qreal(0.40524131400498986),
64 qreal(0.42755509343028208),
65 qreal(0.44961132965460654),
66 qreal(0.47139673682599764),
67 qreal(0.49289819222978404),
68 qreal(0.51410274419322166),
69 qreal(0.53499761988709715),
70 qreal(0.55557023301960218),
71 qreal(0.57580819141784534),
72 qreal(0.59569930449243336),
73 qreal(0.61523159058062682),
74 qreal(0.63439328416364549),
75 qreal(0.65317284295377676),
76 qreal(0.67155895484701833),
77 qreal(0.68954054473706683),
78 qreal(0.70710678118654746),
79 qreal(0.72424708295146689),
80 qreal(0.74095112535495911),
81 qreal(0.75720884650648446),
82 qreal(0.77301045336273699),
83 qreal(0.78834642762660623),
84 qreal(0.80320753148064483),
85 qreal(0.81758481315158371),
86 qreal(0.83146961230254524),
87 qreal(0.84485356524970701),
88 qreal(0.85772861000027212),
89 qreal(0.87008699110871135),
90 qreal(0.88192126434835494),
91 qreal(0.89322430119551532),
92 qreal(0.90398929312344334),
93 qreal(0.91420975570353069),
94 qreal(0.92387953251128674),
95 qreal(0.93299279883473885),
96 qreal(0.94154406518302081),
97 qreal(0.94952818059303667),
98 qreal(0.95694033573220894),
99 qreal(0.96377606579543984),
100 qreal(0.97003125319454397),
101 qreal(0.97570213003852857),
102 qreal(0.98078528040323043),
103 qreal(0.98527764238894122),
104 qreal(0.98917650996478101),
105 qreal(0.99247953459870997),
106 qreal(0.99518472667219682),
107 qreal(0.99729045667869021),
108 qreal(0.99879545620517241),
109 qreal(0.99969881869620425),
110 qreal(1.0),
111 qreal(0.99969881869620425),
112 qreal(0.99879545620517241),
113 qreal(0.99729045667869021),
114 qreal(0.99518472667219693),
115 qreal(0.99247953459870997),
116 qreal(0.98917650996478101),
117 qreal(0.98527764238894122),
118 qreal(0.98078528040323043),
119 qreal(0.97570213003852857),
120 qreal(0.97003125319454397),
121 qreal(0.96377606579543984),
122 qreal(0.95694033573220894),
123 qreal(0.94952818059303667),
124 qreal(0.94154406518302081),
125 qreal(0.93299279883473885),
126 qreal(0.92387953251128674),
127 qreal(0.91420975570353069),
128 qreal(0.90398929312344345),
129 qreal(0.89322430119551521),
130 qreal(0.88192126434835505),
131 qreal(0.87008699110871146),
132 qreal(0.85772861000027212),
133 qreal(0.84485356524970723),
134 qreal(0.83146961230254546),
135 qreal(0.81758481315158371),
136 qreal(0.80320753148064494),
137 qreal(0.78834642762660634),
138 qreal(0.7730104533627371),
139 qreal(0.75720884650648468),
140 qreal(0.74095112535495899),
141 qreal(0.72424708295146689),
142 qreal(0.70710678118654757),
143 qreal(0.68954054473706705),
144 qreal(0.67155895484701855),
145 qreal(0.65317284295377664),
146 qreal(0.63439328416364549),
147 qreal(0.61523159058062693),
148 qreal(0.59569930449243347),
149 qreal(0.57580819141784545),
150 qreal(0.55557023301960218),
151 qreal(0.53499761988709715),
152 qreal(0.51410274419322177),
153 qreal(0.49289819222978415),
154 qreal(0.47139673682599786),
155 qreal(0.44961132965460687),
156 qreal(0.42755509343028203),
157 qreal(0.40524131400498992),
158 qreal(0.38268343236508989),
159 qreal(0.35989503653498833),
160 qreal(0.33688985339222033),
161 qreal(0.31368174039889141),
162 qreal(0.29028467725446239),
163 qreal(0.26671275747489848),
164 qreal(0.24298017990326407),
165 qreal(0.21910124015687005),
166 qreal(0.19509032201612861),
167 qreal(0.17096188876030122),
168 qreal(0.1467304744553618),
169 qreal(0.12241067519921635),
170 qreal(0.098017140329560826),
171 qreal(0.073564563599667732),
172 qreal(0.049067674327417966),
173 qreal(0.024541228522912326),
174 qreal(0.0),
175 qreal(-0.02454122852291208),
176 qreal(-0.049067674327417724),
177 qreal(-0.073564563599667496),
178 qreal(-0.09801714032956059),
179 qreal(-0.1224106751992161),
180 qreal(-0.14673047445536158),
181 qreal(-0.17096188876030097),
182 qreal(-0.19509032201612836),
183 qreal(-0.2191012401568698),
184 qreal(-0.24298017990326382),
185 qreal(-0.26671275747489825),
186 qreal(-0.29028467725446211),
187 qreal(-0.31368174039889118),
188 qreal(-0.33688985339222011),
189 qreal(-0.35989503653498811),
190 qreal(-0.38268343236508967),
191 qreal(-0.40524131400498969),
192 qreal(-0.42755509343028181),
193 qreal(-0.44961132965460665),
194 qreal(-0.47139673682599764),
195 qreal(-0.49289819222978393),
196 qreal(-0.51410274419322155),
197 qreal(-0.53499761988709693),
198 qreal(-0.55557023301960196),
199 qreal(-0.57580819141784534),
200 qreal(-0.59569930449243325),
201 qreal(-0.61523159058062671),
202 qreal(-0.63439328416364527),
203 qreal(-0.65317284295377653),
204 qreal(-0.67155895484701844),
205 qreal(-0.68954054473706683),
206 qreal(-0.70710678118654746),
207 qreal(-0.72424708295146678),
208 qreal(-0.74095112535495888),
209 qreal(-0.75720884650648423),
210 qreal(-0.77301045336273666),
211 qreal(-0.78834642762660589),
212 qreal(-0.80320753148064505),
213 qreal(-0.81758481315158382),
214 qreal(-0.83146961230254524),
215 qreal(-0.84485356524970701),
216 qreal(-0.85772861000027201),
217 qreal(-0.87008699110871135),
218 qreal(-0.88192126434835494),
219 qreal(-0.89322430119551521),
220 qreal(-0.90398929312344312),
221 qreal(-0.91420975570353047),
222 qreal(-0.92387953251128652),
223 qreal(-0.93299279883473896),
224 qreal(-0.94154406518302081),
225 qreal(-0.94952818059303667),
226 qreal(-0.95694033573220882),
227 qreal(-0.96377606579543984),
228 qreal(-0.97003125319454397),
229 qreal(-0.97570213003852846),
230 qreal(-0.98078528040323032),
231 qreal(-0.98527764238894111),
232 qreal(-0.9891765099647809),
233 qreal(-0.99247953459871008),
234 qreal(-0.99518472667219693),
235 qreal(-0.99729045667869021),
236 qreal(-0.99879545620517241),
237 qreal(-0.99969881869620425),
238 qreal(-1.0),
239 qreal(-0.99969881869620425),
240 qreal(-0.99879545620517241),
241 qreal(-0.99729045667869021),
242 qreal(-0.99518472667219693),
243 qreal(-0.99247953459871008),
244 qreal(-0.9891765099647809),
245 qreal(-0.98527764238894122),
246 qreal(-0.98078528040323043),
247 qreal(-0.97570213003852857),
248 qreal(-0.97003125319454397),
249 qreal(-0.96377606579543995),
250 qreal(-0.95694033573220894),
251 qreal(-0.94952818059303679),
252 qreal(-0.94154406518302092),
253 qreal(-0.93299279883473907),
254 qreal(-0.92387953251128663),
255 qreal(-0.91420975570353058),
256 qreal(-0.90398929312344334),
257 qreal(-0.89322430119551532),
258 qreal(-0.88192126434835505),
259 qreal(-0.87008699110871146),
260 qreal(-0.85772861000027223),
261 qreal(-0.84485356524970723),
262 qreal(-0.83146961230254546),
263 qreal(-0.81758481315158404),
264 qreal(-0.80320753148064528),
265 qreal(-0.78834642762660612),
266 qreal(-0.77301045336273688),
267 qreal(-0.75720884650648457),
268 qreal(-0.74095112535495911),
269 qreal(-0.724247082951467),
270 qreal(-0.70710678118654768),
271 qreal(-0.68954054473706716),
272 qreal(-0.67155895484701866),
273 qreal(-0.65317284295377709),
274 qreal(-0.63439328416364593),
275 qreal(-0.61523159058062737),
276 qreal(-0.59569930449243325),
277 qreal(-0.57580819141784523),
278 qreal(-0.55557023301960218),
279 qreal(-0.53499761988709726),
280 qreal(-0.51410274419322188),
281 qreal(-0.49289819222978426),
282 qreal(-0.47139673682599792),
283 qreal(-0.44961132965460698),
284 qreal(-0.42755509343028253),
285 qreal(-0.40524131400499042),
286 qreal(-0.38268343236509039),
287 qreal(-0.359895036534988),
288 qreal(-0.33688985339222),
289 qreal(-0.31368174039889152),
290 qreal(-0.2902846772544625),
291 qreal(-0.26671275747489859),
292 qreal(-0.24298017990326418),
293 qreal(-0.21910124015687016),
294 qreal(-0.19509032201612872),
295 qreal(-0.17096188876030177),
296 qreal(-0.14673047445536239),
297 qreal(-0.12241067519921603),
298 qreal(-0.098017140329560506),
299 qreal(-0.073564563599667412),
300 qreal(-0.049067674327418091),
301 qreal(-0.024541228522912448)
302};
303
304QT_END_NAMESPACE
305

source code of qtbase/src/corelib/kernel/qmath.cpp