Imported Upstream version 1.0
[platform/upstream/mpc.git] / tests / tanh.dat
1 # Data file for mpc_tanh.
2 #
3 # Copyright (C) 2008 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 # For explanations on the file format, see sin.dat.
21
22 # special values (following ISO C99 standard)
23 0 0 7   -1 7    0   7 -inf 7 -inf N N
24 0 0 7   -1 7   -0   7 -inf 7   -1 N N
25 0 0 7   -1 7   -0   7 -inf 7   -0 N N
26 0 0 7   -1 7   +0   7 -inf 7   +0 N N
27 0 0 7   -1 7   +0   7 -inf 7    1 N N
28 0 0 7   -1 7    0   7 -inf 7 +inf N N
29 0 0 7   -1 7    0   7 -inf 7  NaN N N
30 0 0 7  NaN 7  NaN   7   -1 7 -inf N N
31 0 0 7  NaN 7  NaN   7   -1 7 +inf N N
32 0 0 7  NaN 7  NaN   7   -1 7  NaN N N
33 0 0 7  NaN 7  NaN   7   -0 7 -inf N N
34 0 0 7   -0 7   -0   7   -0 7   -0 N N
35 0 0 7   -0 7   +0   7   -0 7   +0 N N
36 0 0 7  NaN 7  NaN   7   -0 7 +inf N N
37 0 0 7  NaN 7  NaN   7   -0 7  NaN N N
38 0 0 7  NaN 7  NaN   7   +0 7 -inf N N
39 0 0 7   +0 7   -0   7   +0 7   -0 N N
40 0 0 7   +0 7   +0   7   +0 7   +0 N N
41 0 0 7  NaN 7  NaN   7   +0 7 +inf N N
42 0 0 7  NaN 7  NaN   7   +0 7  NaN N N
43 0 0 7  NaN 7  NaN   7    1 7 -inf N N
44 0 0 7  NaN 7  NaN   7    1 7 +inf N N
45 0 0 7  NaN 7  NaN   7    1 7  NaN N N
46 0 0 7    1 7    0   7 +inf 7 -inf N N
47 0 0 7    1 7   -0   7 +inf 7   -1 N N
48 0 0 7    1 7   -0   7 +inf 7   -0 N N
49 0 0 7    1 7   +0   7 +inf 7   +0 N N
50 0 0 7    1 7   +0   7 +inf 7    1 N N
51 0 0 7    1 7    0   7 +inf 7 +inf N N
52 0 0 7    1 7    0   7 +inf 7  NaN N N
53 0 0 7  NaN 7  NaN   7  NaN 7 -inf N N
54 0 0 7  NaN 7  NaN   7  NaN 7   -1 N N
55 0 0 7  NaN 7   -0   7  NaN 7   -0 N N
56 0 0 7  NaN 7   +0   7  NaN 7   +0 N N
57 0 0 7  NaN 7  NaN   7  NaN 7    1 N N
58 0 0 7  NaN 7  NaN   7  NaN 7 +inf N N
59 0 0 7  NaN 7  NaN   7  NaN 7  NaN N N
60
61 # purely real argument
62 - 0 50 -0xc2f7d5a8a79ccp-52 50 -0   7 -1 7 -0 N N
63 - 0 50 -0xc2f7d5a8a79ccp-52 50 +0   7 -1 7 +0 N N
64 + 0 50  0xc2f7d5a8a79ccp-52 50 -0   7  1 7 -0 N N
65 + 0 50  0xc2f7d5a8a79ccp-52 50 +0   7  1 7 +0 N N
66
67 # purely imaginary argument
68 0 - 50 -0 50 -0x18eb245cbee3a8p-52   7 -0 7 -1 N N
69 0 + 50 -0 50  0x18eb245cbee3a8p-52   7 -0 7  1 N N
70 0 - 50 +0 50 -0x18eb245cbee3a8p-52   7 +0 7 -1 N N
71 0 + 50 +0 50  0x18eb245cbee3a8p-52   7 +0 7  1 N N
72
73 # values with +1 and -1
74 - - 50 -0x1157bffca4a8cp-48 50 -0x459193d28cfe2p-52   7 -1 7 -1 N N
75 - + 50 -0x1157bffca4a8cp-48 50  0x459193d28cfe2p-52   7 -1 7  1 N N
76 + - 50  0x1157bffca4a8cp-48 50 -0x459193d28cfe2p-52   7  1 7 -1 N N
77 + + 50  0x1157bffca4a8cp-48 50  0x459193d28cfe2p-52   7  1 7  1 N N
78
79 # IEEE-754 double precision
80 + - 53 0x10000000000001p-53  53 0x1FFFFFFFFFFFFFp-53   53 0x1E938CBCEB16DFp-55 53 0x1B1F56FDEEF00Fp-53 N N
81