| 1 | /****************************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 | ** All rights reserved.
|
|---|
| 5 | ** Contact: Nokia Corporation ([email protected])
|
|---|
| 6 | **
|
|---|
| 7 | ** This file is part of the QtCore module of the Qt Toolkit.
|
|---|
| 8 | **
|
|---|
| 9 | ** $QT_BEGIN_LICENSE:LGPL$
|
|---|
| 10 | ** Commercial Usage
|
|---|
| 11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
|---|
| 12 | ** accordance with the Qt Commercial License Agreement provided with the
|
|---|
| 13 | ** Software or, alternatively, in accordance with the terms contained in
|
|---|
| 14 | ** a written agreement between you and Nokia.
|
|---|
| 15 | **
|
|---|
| 16 | ** GNU Lesser General Public License Usage
|
|---|
| 17 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
|---|
| 18 | ** General Public License version 2.1 as published by the Free Software
|
|---|
| 19 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
|---|
| 20 | ** packaging of this file. Please review the following information to
|
|---|
| 21 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
|---|
| 22 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|---|
| 23 | **
|
|---|
| 24 | ** In addition, as a special exception, Nokia gives you certain additional
|
|---|
| 25 | ** rights. These rights are described in the Nokia Qt LGPL Exception
|
|---|
| 26 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|---|
| 27 | **
|
|---|
| 28 | ** GNU General Public License Usage
|
|---|
| 29 | ** Alternatively, this file may be used under the terms of the GNU
|
|---|
| 30 | ** General Public License version 3.0 as published by the Free Software
|
|---|
| 31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 32 | ** packaging of this file. Please review the following information to
|
|---|
| 33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
|---|
| 34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 35 | **
|
|---|
| 36 | ** If you have questions regarding the use of this file, please contact
|
|---|
| 37 | ** Nokia at [email protected].
|
|---|
| 38 | ** $QT_END_LICENSE$
|
|---|
| 39 | **
|
|---|
| 40 | ****************************************************************************/
|
|---|
| 41 |
|
|---|
| 42 | #include <QtCore/qmath.h>
|
|---|
| 43 |
|
|---|
| 44 | QT_BEGIN_NAMESPACE
|
|---|
| 45 |
|
|---|
| 46 | const qreal qt_sine_table[QT_SINE_TABLE_SIZE] = {
|
|---|
| 47 | 0.0,
|
|---|
| 48 | 0.024541228522912288,
|
|---|
| 49 | 0.049067674327418015,
|
|---|
| 50 | 0.073564563599667426,
|
|---|
| 51 | 0.098017140329560604,
|
|---|
| 52 | 0.1224106751992162,
|
|---|
| 53 | 0.14673047445536175,
|
|---|
| 54 | 0.17096188876030122,
|
|---|
| 55 | 0.19509032201612825,
|
|---|
| 56 | 0.2191012401568698,
|
|---|
| 57 | 0.24298017990326387,
|
|---|
| 58 | 0.26671275747489837,
|
|---|
| 59 | 0.29028467725446233,
|
|---|
| 60 | 0.31368174039889152,
|
|---|
| 61 | 0.33688985339222005,
|
|---|
| 62 | 0.35989503653498811,
|
|---|
| 63 | 0.38268343236508978,
|
|---|
| 64 | 0.40524131400498986,
|
|---|
| 65 | 0.42755509343028208,
|
|---|
| 66 | 0.44961132965460654,
|
|---|
| 67 | 0.47139673682599764,
|
|---|
| 68 | 0.49289819222978404,
|
|---|
| 69 | 0.51410274419322166,
|
|---|
| 70 | 0.53499761988709715,
|
|---|
| 71 | 0.55557023301960218,
|
|---|
| 72 | 0.57580819141784534,
|
|---|
| 73 | 0.59569930449243336,
|
|---|
| 74 | 0.61523159058062682,
|
|---|
| 75 | 0.63439328416364549,
|
|---|
| 76 | 0.65317284295377676,
|
|---|
| 77 | 0.67155895484701833,
|
|---|
| 78 | 0.68954054473706683,
|
|---|
| 79 | 0.70710678118654746,
|
|---|
| 80 | 0.72424708295146689,
|
|---|
| 81 | 0.74095112535495911,
|
|---|
| 82 | 0.75720884650648446,
|
|---|
| 83 | 0.77301045336273699,
|
|---|
| 84 | 0.78834642762660623,
|
|---|
| 85 | 0.80320753148064483,
|
|---|
| 86 | 0.81758481315158371,
|
|---|
| 87 | 0.83146961230254524,
|
|---|
| 88 | 0.84485356524970701,
|
|---|
| 89 | 0.85772861000027212,
|
|---|
| 90 | 0.87008699110871135,
|
|---|
| 91 | 0.88192126434835494,
|
|---|
| 92 | 0.89322430119551532,
|
|---|
| 93 | 0.90398929312344334,
|
|---|
| 94 | 0.91420975570353069,
|
|---|
| 95 | 0.92387953251128674,
|
|---|
| 96 | 0.93299279883473885,
|
|---|
| 97 | 0.94154406518302081,
|
|---|
| 98 | 0.94952818059303667,
|
|---|
| 99 | 0.95694033573220894,
|
|---|
| 100 | 0.96377606579543984,
|
|---|
| 101 | 0.97003125319454397,
|
|---|
| 102 | 0.97570213003852857,
|
|---|
| 103 | 0.98078528040323043,
|
|---|
| 104 | 0.98527764238894122,
|
|---|
| 105 | 0.98917650996478101,
|
|---|
| 106 | 0.99247953459870997,
|
|---|
| 107 | 0.99518472667219682,
|
|---|
| 108 | 0.99729045667869021,
|
|---|
| 109 | 0.99879545620517241,
|
|---|
| 110 | 0.99969881869620425,
|
|---|
| 111 | 1.0,
|
|---|
| 112 | 0.99969881869620425,
|
|---|
| 113 | 0.99879545620517241,
|
|---|
| 114 | 0.99729045667869021,
|
|---|
| 115 | 0.99518472667219693,
|
|---|
| 116 | 0.99247953459870997,
|
|---|
| 117 | 0.98917650996478101,
|
|---|
| 118 | 0.98527764238894122,
|
|---|
|
|---|