1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
# Data test file for mpc_cosh.
# Copyright (C) INRIA, 2008, 2010
# This file is part of the MPC Library.
#
# The MPC Library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version.
#
# The MPC Library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with the MPC Library; see the file COPYING.LIB. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
# See file sin.dat for the format description.
# Special values, following ISO C99 standard, Annex G,
# more precisely Section G.6.2.4 "The ccosh functions".
# Rule [conj]: cosh(conj(z)) = conj(cosh(z))
# Rule [even]: cosh(-z) = cosh(z)
# cosh(+0 + i*0) = 1 + i*0
0 0 2 1 2 +0 2 +0 2 +0 N N
# [conj]: cosh(+0 - i*0) = 1 - i*0
0 0 2 1 2 -0 2 +0 2 -0 N N
# [even]: cosh(-0 - i*0) = 1 + i*0
0 0 2 1 2 +0 2 -0 2 -0 N N
# [even+conj]: cosh(-0 + i*0) = 1 - i*0
0 0 2 1 2 -0 2 -0 2 +0 N N
# cosh(+0 + i*inf) = nan + i*0 (C99 says that the sign of the imaginary part
# is left unspecified)
0 0 2 nan 2 0 2 +0 2 +inf N N
# [conj]: cosh(+0 - i*inf) = nan - i*0
0 0 2 nan 2 0 2 +0 2 -inf N N
# [even]: cosh(-0 - i*inf) = nan + i*0
0 0 2 nan 2 0 2 -0 2 -inf N N
# [even+conj]: cosh(-0 + i*inf) = nan - i*0
0 0 2 nan 2 0 2 -0 2 +inf N N
# cosh(+0 +i*nan) = nan + i*0 (C99 says that the sign of the imaginary part
# is left unspecified)
0 0 2 nan 2 0 2 +0 2 nan N N
# [even]: cosh(-0 + i*nan) = nan + i*0
0 0 2 nan 2 0 2 -0 2 nan N N
# cosh(x + i*inf) = nan + i*nan for finite nonzero x
0 0 2 nan 2 nan 2 1 2 inf N N
0 0 2 nan 2 nan 2 -1 2 inf N N
# [conj]: cosh(x - i*inf) = nan + i*nan
0 0 2 nan 2 nan 2 1 2 -inf N N
0 0 2 nan 2 nan 2 -1 2 -inf N N
# [even] and [even+conj] are already considered for x=-1 < 0
# cosh(x + i*nan) = nan + i*nan for finite nonzero x
0 0 2 nan 2 nan 2 1 2 nan N N
0 0 2 nan 2 nan 2 -1 2 nan N N
# [conj] makes no sense since nan has no sign
# [even] is already considered for x=-1 < 0
# cosh(+inf + i*0) = +inf + i*0
0 0 2 +inf 2 +0 2 +inf 2 +0 N N
# [conj]: cosh(+inf - i*0) = +inf - i*0
0 0 2 +inf 2 -0 2 +inf 2 -0 N N
# [even]: cosh(-inf - i*0) = +inf + i*0
0 0 2 +inf 2 +0 2 -inf 2 -0 N N
# [even+conj]: cosh(-inf + i*0) = +inf - i*0
0 0 2 +inf 2 -0 2 -inf 2 +0 N N
# cosh(+inf + i*y) = +inf * (cos(y) + i*sin(y)) for finite non-zero y
0 0 2 +inf 2 +inf 2 +inf 2 1 N N
0 0 2 -inf 2 +inf 2 +inf 2 2 N N
0 0 2 -inf 2 -inf 2 +inf 2 4 N N
0 0 2 +inf 2 -inf 2 +inf 2 1024 N N
# [conj]
0 0 2 +inf 2 -inf 2 +inf 2 -1 N N
0 0 2 -inf 2 -inf 2 +inf 2 -2 N N
0 0 2 -inf 2 +inf 2 +inf 2 -4 N N
0 0 2 +inf 2 +inf 2 +inf 2 -1024 N N
# [even]
0 0 2 +inf 2 +inf 2 -inf 2 -1 N N
0 0 2 -inf 2 +inf 2 -inf 2 -2 N N
0 0 2 -inf 2 -inf 2 -inf 2 -4 N N
0 0 2 +inf 2 -inf 2 -inf 2 -1024 N N
# [even+conj]
0 0 2 +inf 2 -inf 2 -inf 2 1 N N
0 0 2 -inf 2 -inf 2 -inf 2 2 N N
0 0 2 -inf 2 +inf 2 -inf 2 4 N N
0 0 2 +inf 2 +inf 2 -inf 2 1024 N N
# cosh(+inf + i*inf) = +inf + i*nan (C99 leaves unspecified the sign of the
# real part)
0 0 2 inf 2 nan 2 +inf 2 +inf N N
# [conj]: cosh(+inf - i*inf) = +inf + i*nan
0 0 2 inf 2 nan 2 +inf 2 -inf N N
# [even]: cosh(-inf - i*inf) = +inf + i*nan
0 0 2 inf 2 nan 2 -inf 2 -inf N N
# [even+conj]: cosh(-inf + i*inf) = +inf + i*nan
0 0 2 inf 2 nan 2 -inf 2 +inf N N
# cosh(+inf + i*nan) = +inf + i*nan
0 0 2 +inf 2 nan 2 +inf 2 nan N N
# [conj] makes no sense since NaN has no sign
# [even]: cosh(-inf + i*nan) = +inf + i*nan
0 0 2 +inf 2 nan 2 -inf 2 nan N N
# cosh(nan + i*0) = nan - i*0 (C99 leaves unspecified the sign of the
# imaginary part)
0 0 2 nan 2 0 2 nan 2 +0 N N
# [conj]: cosh(nan - i*0) = nan + i*0
0 0 2 nan 2 0 2 nan 2 -0 N N
# cosh(nan + i*y) = nan + i*nan for all nonzero y (including +/-inf)
0 0 2 nan 2 nan 2 nan 2 1 N N
0 0 2 nan 2 nan 2 nan 2 -1 N N
0 0 2 nan 2 nan 2 nan 2 +inf N N
0 0 2 nan 2 nan 2 nan 2 -inf N N
# cosh(nan + i*nan) = nan + i*nan
0 0 2 nan 2 nan 2 nan 2 nan N N
+ + 53 0x10000000000001p-53 53 0x10000000000001p-52 53 0x1DA2E1BD2C9EBCp-53 53 0x138AADEA15829Fp-52 N N
# huge values
+ - 53 +inf 53 -inf 53 0x4580CBF242683p-3 53 -0x1B3E8A3660D279p-3 N N
- - 53 -inf 53 -inf 53 -0x1B3E8A3660D279p-3 53 0x4580CBF242683p-3 N N
|