1 # Data file for mpc_sin.
3 # Copyright (C) 2008 Philippe Th\'eveny
5 # This file is part of the MPC Library.
7 # The MPC Library is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 2.1 of the License, or (at your
10 # option) any later version.
12 # The MPC Library is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 # License for more details.
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with the MPC Library; see the file COPYING.LIB. If not, write to
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 # The line format respects the parameter order in function prototype as
25 # INEX_RE INEX_IM PREC_ROP_RE ROP_RE PREC_ROP_IM ROP_IM PREC_OP_RE OP_RE PREC_OP_IM OP_IM RND_RE RND_IM
27 # where op = op_re + i * op_im, rop = rop_re + i * rop_im,
28 # rop_re is ROP_RE rounded to nearest to the precision of PREC_ROP_RE
29 # rop_im is ROP_IM rounded to nearest to the precision of PREC_ROP_IM
30 # op_re is OP_RE rounded to nearest to the precision of PREC_OP_RE
31 # op_im is OP_IM rounded to nearest to the precision of PREC_OP_IM
32 # ROP_RE is checked against Re(sin op) rounded to the precision PREC_ROP_RE
33 # in the direction RND_RE
34 # ROP_IM is checked against Im(sin op) rounded to the precision PREC_ROP_IM
35 # in the direction RND_IM
36 # INEX_RE is the ternary value for the real part with the following notation:
37 # "?" ternary value not checked
38 # "+" if ROP_RE is greater than the exact mathematical result
39 # "0" if ROP_RE is exactly the mathematical result
40 # "-" if ROP_RE is less than the exact mathematical result
42 # rounding modes notation:
43 # "N" is rounding to nearest
44 # "Z" is rounding towards zero
45 # "U" is rounding towards plus infinity
46 # "D" is rounding towards minus infinity
47 # Use prefixes "0b" for values in base two, "0x" for values in base sixteen,
48 # no prefix for value in base ten.
49 # In all bases, "nan" is NaN, "inf" is infinity;
50 # The sign of the result is checked with "+inf", "-inf", "-0", or "+0".
52 # special values (following ISO C99 standard)
53 0 0 53 nan 53 inf 53 -inf 53 -inf N N
54 0 0 53 nan 53 nan 53 -inf 53 -1 N N
55 0 0 53 nan 53 0 53 -inf 53 -0 N N
56 0 0 53 nan 53 0 53 -inf 53 +0 N N
57 0 0 53 nan 53 nan 53 -inf 53 +1 N N
58 0 0 53 nan 53 inf 53 -inf 53 +inf N N
59 0 0 53 nan 53 nan 53 -inf 53 nan N N
60 0 0 53 +inf 53 -inf 53 -6 53 -inf N N
61 0 0 53 +inf 53 +inf 53 -6 53 +inf N N
62 0 0 53 nan 53 nan 53 -6 53 nan N N
63 0 0 53 +inf 53 +inf 53 -4 53 -inf N N
64 0 0 53 +inf 53 -inf 53 -4 53 +inf N N
65 0 0 53 nan 53 nan 53 -4 53 nan N N
66 0 0 53 -inf 53 +inf 53 -2 53 -inf N N
67 0 0 53 -inf 53 -inf 53 -2 53 +inf N N
68 0 0 53 nan 53 nan 53 -2 53 nan N N
69 0 0 53 -inf 53 -inf 53 -1 53 -inf N N
70 0 0 53 -inf 53 +inf 53 -1 53 +inf N N
71 0 0 53 nan 53 nan 53 -1 53 nan N N
72 0 0 53 -0 53 -inf 53 -0 53 -inf N N
73 0 0 53 -0 53 -0 53 -0 53 -0 N N
74 0 0 53 -0 53 +0 53 -0 53 +0 N N
75 0 0 53 -0 53 +inf 53 -0 53 +inf N N
76 0 0 53 -0 53 nan 53 -0 53 nan N N
77 0 0 53 +0 53 -inf 53 +0 53 -inf N N
78 0 0 53 +0 53 -0 53 +0 53 -0 N N
79 0 0 53 +0 53 +0 53 +0 53 +0 N N
80 0 0 53 +0 53 +inf 53 +0 53 +inf N N
81 0 0 53 +0 53 nan 53 +0 53 nan N N
82 0 0 53 +inf 53 -inf 53 +1 53 -inf N N
83 0 0 53 +inf 53 +inf 53 +1 53 +inf N N
84 0 0 53 nan 53 nan 53 +1 53 nan N N
85 0 0 53 +inf 53 +inf 53 +2 53 -inf N N
86 0 0 53 +inf 53 -inf 53 +2 53 +inf N N
87 0 0 53 nan 53 nan 53 +2 53 nan N N
88 0 0 53 -inf 53 +inf 53 +4 53 -inf N N
89 0 0 53 -inf 53 -inf 53 +4 53 +inf N N
90 0 0 53 nan 53 nan 53 +4 53 nan N N
91 0 0 53 -inf 53 -inf 53 +6 53 -inf N N
92 0 0 53 -inf 53 +inf 53 +6 53 +inf N N
93 0 0 53 nan 53 nan 53 +6 53 nan N N
94 0 0 53 nan 53 inf 53 +inf 53 -inf N N
95 0 0 53 nan 53 nan 53 +inf 53 -1 N N
96 0 0 53 nan 53 0 53 +inf 53 -0 N N
97 0 0 53 nan 53 0 53 +inf 53 +0 N N
98 0 0 53 nan 53 nan 53 +inf 53 +1 N N
99 0 0 53 nan 53 inf 53 +inf 53 +inf N N
100 0 0 53 nan 53 nan 53 +inf 53 nan N N
101 0 0 53 nan 53 inf 53 nan 53 -inf N N
102 0 0 53 nan 53 nan 53 nan 53 -1 N N
103 0 0 53 nan 53 0 53 nan 53 -0 N N
104 0 0 53 nan 53 0 53 nan 53 +0 N N
105 0 0 53 nan 53 nan 53 nan 53 +1 N N
106 0 0 53 nan 53 inf 53 nan 53 +inf N N
107 0 0 53 nan 53 nan 53 nan 53 nan N N
110 - 0 53 0x4787C62AC28Bp-48 53 -0 53 -6 53 -0 N N
111 - 0 53 0x4787C62AC28Bp-48 53 +0 53 -6 53 +0 N N
112 - 0 53 0xC1BDCEEEE0F57p-52 53 +0 53 -4 53 -0 N N
113 - 0 53 0xC1BDCEEEE0F57p-52 53 -0 53 -4 53 +0 N N
114 - 0 53 -0xE8C7B7568DA23p-52 53 +0 53 -2 53 -0 N N
115 - 0 53 -0xE8C7B7568DA23p-52 53 -0 53 -2 53 +0 N N
116 + 0 53 -0xD76AA47848677p-52 53 -0 53 -1 53 -0 N N
117 + 0 53 -0xD76AA47848677p-52 53 +0 53 -1 53 +0 N N
118 - 0 53 0xD76AA47848677p-52 53 -0 53 +1 53 -0 N N
119 - 0 53 0xD76AA47848677p-52 53 +0 53 +1 53 +0 N N
120 + 0 53 0xE8C7B7568DA23p-52 53 +0 53 +2 53 -0 N N
121 + 0 53 0xE8C7B7568DA23p-52 53 -0 53 +2 53 +0 N N
122 + 0 53 -0xC1BDCEEEE0F57p-52 53 +0 53 +4 53 -0 N N
123 + 0 53 -0xC1BDCEEEE0F57p-52 53 -0 53 +4 53 +0 N N
124 + 0 53 -0x4787C62AC28Bp-48 53 -0 53 +6 53 -0 N N
125 + 0 53 -0x4787C62AC28Bp-48 53 +0 53 +6 53 +0 N N
127 # pure imaginary argument
128 0 + 53 -0 53 -0x1936D22F67C805p-45 53 -0 53 -6 N N
129 0 + 53 +0 53 -0x1936D22F67C805p-45 53 +0 53 -6 N N
130 0 - 53 -0 53 -0x1B4A3803703631p-48 53 -0 53 -4 N N
131 0 - 53 +0 53 -0x1B4A3803703631p-48 53 +0 53 -4 N N
132 0 + 53 -0 53 -0x1D03CF63B6E19Fp-51 53 -0 53 -2 N N
133 0 + 53 +0 53 -0x1D03CF63B6E19Fp-51 53 +0 53 -2 N N
134 0 + 53 -0 53 -0x966CFE2275CC1p-51 53 -0 53 -1 N N
135 0 + 53 +0 53 -0x966CFE2275CC1p-51 53 +0 53 -1 N N
136 0 - 53 -0 53 0x966CFE2275CC1p-51 53 -0 53 +1 N N
137 0 - 53 +0 53 0x966CFE2275CC1p-51 53 +0 53 +1 N N
138 0 - 53 -0 53 0x1D03CF63B6E19Fp-51 53 -0 53 +2 N N
139 0 - 53 +0 53 0x1D03CF63B6E19Fp-51 53 +0 53 +2 N N
140 0 + 53 -0 53 0x1B4A3803703631p-48 53 -0 53 +4 N N
141 0 + 53 +0 53 0x1B4A3803703631p-48 53 +0 53 +4 N N
142 0 - 53 -0 53 0x1936D22F67C805p-45 53 -0 53 +6 N N
143 0 - 53 +0 53 0x1936D22F67C805p-45 53 +0 53 +6 N N
145 # IEEE-754 double precision
146 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 N N
147 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 N Z
148 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 N U
149 + - 53 514 53 -0x8DBE5135A8CA9p-96 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 N D
150 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 Z N
151 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 Z Z
152 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 Z U
153 - - 53 0x100FFFFFFFFFFFp-43 53 -0x8DBE5135A8CA9p-96 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 Z D
154 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 U N
155 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 U Z
156 + + 53 514 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 U U
157 + - 53 514 53 -0x8DBE5135A8CA9p-96 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 U D
158 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 D N
159 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 D Z
160 - + 53 0x100FFFFFFFFFFFp-43 53 -0x11B7CA26B51951p-97 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 D U
161 - - 53 0x100FFFFFFFFFFFp-43 53 -0x8DBE5135A8CA9p-96 53 0x3243F6A8885A3p-49 53 -0x1BBDD1808C59A3p-50 D D