Import Upstream version 0.8.2
[platform/upstream/mpc.git] / tests / tanh.dat
1 # Data file for mpc_tanh.
2 #
3 # Copyright (C) 2008 Andreas Enge
4 #
5 # This file is part of the MPC Library.
6 #
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.
11 #
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.
16 #
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,
20 # MA 02111-1307, USA.
21 #
22 # For explanations on the file format, see sin.dat.
23
24 # special values (following ISO C99 standard)
25 0 0 7   -1 7    0   7 -inf 7 -inf N N
26 0 0 7   -1 7   -0   7 -inf 7   -1 N N
27 0 0 7   -1 7   -0   7 -inf 7   -0 N N
28 0 0 7   -1 7   +0   7 -inf 7   +0 N N
29 0 0 7   -1 7   +0   7 -inf 7    1 N N
30 0 0 7   -1 7    0   7 -inf 7 +inf N N
31 0 0 7   -1 7    0   7 -inf 7  NaN N N
32 0 0 7  NaN 7  NaN   7   -1 7 -inf N N
33 0 0 7  NaN 7  NaN   7   -1 7 +inf N N
34 0 0 7  NaN 7  NaN   7   -1 7  NaN N N
35 0 0 7  NaN 7  NaN   7   -0 7 -inf N N
36 0 0 7   -0 7   -0   7   -0 7   -0 N N
37 0 0 7   -0 7   +0   7   -0 7   +0 N N
38 0 0 7  NaN 7  NaN   7   -0 7 +inf N N
39 0 0 7  NaN 7  NaN   7   -0 7  NaN N N
40 0 0 7  NaN 7  NaN   7   +0 7 -inf N N
41 0 0 7   +0 7   -0   7   +0 7   -0 N N
42 0 0 7   +0 7   +0   7   +0 7   +0 N N
43 0 0 7  NaN 7  NaN   7   +0 7 +inf N N
44 0 0 7  NaN 7  NaN   7   +0 7  NaN N N
45 0 0 7  NaN 7  NaN   7    1 7 -inf N N
46 0 0 7  NaN 7  NaN   7    1 7 +inf N N
47 0 0 7  NaN 7  NaN   7    1 7  NaN N N
48 0 0 7    1 7    0   7 +inf 7 -inf N N
49 0 0 7    1 7   -0   7 +inf 7   -1 N N
50 0 0 7    1 7   -0   7 +inf 7   -0 N N
51 0 0 7    1 7   +0   7 +inf 7   +0 N N
52 0 0 7    1 7   +0   7 +inf 7    1 N N
53 0 0 7    1 7    0   7 +inf 7 +inf N N
54 0 0 7    1 7    0   7 +inf 7  NaN N N
55 0 0 7  NaN 7  NaN   7  NaN 7 -inf N N
56 0 0 7  NaN 7  NaN   7  NaN 7   -1 N N
57 0 0 7  NaN 7   -0   7  NaN 7   -0 N N
58 0 0 7  NaN 7   +0   7  NaN 7   +0 N N
59 0 0 7  NaN 7  NaN   7  NaN 7    1 N N
60 0 0 7  NaN 7  NaN   7  NaN 7 +inf N N
61 0 0 7  NaN 7  NaN   7  NaN 7  NaN N N
62
63 # purely real argument
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 + 0 50  0xc2f7d5a8a79ccp-52 50 -0   7  1 7 -0 N N
67 + 0 50  0xc2f7d5a8a79ccp-52 50 +0   7  1 7 +0 N N
68
69 # purely imaginary argument
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 0 - 50 +0 50 -0x18eb245cbee3a8p-52   7 +0 7 -1 N N
73 0 + 50 +0 50  0x18eb245cbee3a8p-52   7 +0 7  1 N N
74
75 # values with +1 and -1
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 + - 50  0x1157bffca4a8cp-48 50 -0x459193d28cfe2p-52   7  1 7 -1 N N
79 + + 50  0x1157bffca4a8cp-48 50  0x459193d28cfe2p-52   7  1 7  1 N N
80
81 # IEEE-754 double precision
82 + - 53 0x10000000000001p-53  53 0x1FFFFFFFFFFFFFp-53   53 0x1E938CBCEB16DFp-55 53 0x1B1F56FDEEF00Fp-53 N N
83