xref: /netbsd-src/external/lgpl3/mpc/dist/tests/rootofunity.dat (revision 39f28e1e142c5bfb6be935a49cb55e2287fec7ea)
1# Data file for mpc_rootofunity.
2#
3# Copyright (C) 2008, 2010, 2016 INRIA
4#
5# This file is part of GNU MPC.
6#
7# GNU MPC is free software; you can redistribute it and/or modify it under
8# the terms of the GNU Lesser General Public License as published by the
9# Free Software Foundation; either version 3 of the License, or (at your
10#o ption) any later version.
11#
12# GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15# more details.
16#
17# You should have received a copy of the GNU Lesser General Public License
18# along with this program. If not, see http://www.gnu.org/licenses/ .
19#
20# The line format respects the parameter order in function prototype as
21# follow:
22#
23# INEX_RE  INEX_IM  PREC_ROP_RE  ROP_RE  PREC_ROP_IM  ROP_IM  OP1 OP2  RND_RE  RND_IM
24
25# special values
260 0 53 nan 53 nan  0 0 N N
270 0 53 nan 53 nan  0 1 N N
28
29# roots of unity of small order, some of them with exact results
300 0 53 1   53 0   1 1 Z U
310 0 53 -1  53 0   2 1 N N
320 0 53 0   53 1   4 1 U Z
330 0 53 -1  53 0   4 2 U Z
340 0 53 0   53 -1  4 3 U Z
350 0 53 1   53 0   4 4 U Z
360 - 53 -0.5 53  0b1.1011101101100111101011101000010110000100110010101010e-1  3 1 N D
370 + 53 -0.5 53  0b1.1011101101100111101011101000010110000100110010101011e-1  3 1 N U
380 - 53 -0.5 53 -0b1.1011101101100111101011101000010110000100110010101011e-1  3 2 N D
390 + 53 -0.5 53 -0b1.1011101101100111101011101000010110000100110010101010e-1  3 2 N U
400 - 53  0.5 53  0b1.1011101101100111101011101000010110000100110010101010e-1  6 1 D Z
410 - 53  0.5 53 -0b1.1011101101100111101011101000010110000100110010101011e-1  6 5 D D
420 + 53  0.5 53 -0b1.1011101101100111101011101000010110000100110010101010e-1  6 5 D U
43- 0 53  0b1.1011101101100111101011101000010110000100110010101010e-1 53  0.5  12  1 N Z
44- 0 53  0b1.1011101101100111101011101000010110000100110010101010e-1 53  0.5  12  1 D Z
45+ 0 53  0b1.1011101101100111101011101000010110000100110010101011e-1 53  0.5  12  1 U Z
46- 0 53 -0b1.1011101101100111101011101000010110000100110010101011e-1 53  0.5  12  5 D Z
47+ 0 53 -0b1.1011101101100111101011101000010110000100110010101010e-1 53  0.5  12  5 U Z
48- 0 53 -0b1.1011101101100111101011101000010110000100110010101011e-1 53 -0.5  12  7 D Z
49+ 0 53 -0b1.1011101101100111101011101000010110000100110010101010e-1 53 -0.5  12  7 U Z
50- 0 53  0b1.1011101101100111101011101000010110000100110010101010e-1 53 -0.5  12 11 D Z
51+ 0 53  0b1.1011101101100111101011101000010110000100110010101011e-1 53 -0.5  12 11 U Z
52+ + 53  0b1.0110101000001001111001100110011111110011101111001101e-1 53  0b1.0110101000001001111001100110011111110011101111001101e-1  8 1 N N
53+ - 53  0b1.0110101000001001111001100110011111110011101111001101e-1 53  0b1.0110101000001001111001100110011111110011101111001100e-1  8 1 U D
54- + 53  0b1.0110101000001001111001100110011111110011101111001100e-1 53  0b1.0110101000001001111001100110011111110011101111001101e-1  8 1 D U
55+ - 53 -0b1.0110101000001001111001100110011111110011101111001100e-1 53  0b1.0110101000001001111001100110011111110011101111001100e-1  8 3 U D
56- + 53 -0b1.0110101000001001111001100110011111110011101111001101e-1 53  0b1.0110101000001001111001100110011111110011101111001101e-1  8 3 D U
57+ - 53 -0b1.0110101000001001111001100110011111110011101111001100e-1 53 -0b1.0110101000001001111001100110011111110011101111001101e-1  8 5 U D
58- + 53 -0b1.0110101000001001111001100110011111110011101111001101e-1 53 -0b1.0110101000001001111001100110011111110011101111001100e-1  8 5 D U
59+ - 53  0b1.0110101000001001111001100110011111110011101111001101e-1 53 -0b1.0110101000001001111001100110011111110011101111001101e-1  8 7 U D
60- + 53  0b1.0110101000001001111001100110011111110011101111001100e-1 53 -0b1.0110101000001001111001100110011111110011101111001100e-1  8 7 D U
61
62# example with large n=2^32-1 and small real or imaginary part
63+ + 53 1 53 0b1.1001001000011111101101010100010111010100111100010100e-30  4294967295 1 N N
64- + 53 -0b1.1001001000011111101101010100010111010100111100010100e-32 53 1  4294967295 1073741824 N N
65
66