summaryrefslogtreecommitdiff
path: root/tests/atan.dat
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-09-29 14:01:41 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-09-29 14:01:41 +0000
commit5333fc99486311b47fc8a46438d99cf28b5b3298 (patch)
treec2ede2c5ca5bb5ec0be84f5caa1c3ccb24bfe337 /tests/atan.dat
parenta4b47fd8bffc5082f1001ff7fdd2bba8ded6ebe1 (diff)
downloadmpc-5333fc99486311b47fc8a46438d99cf28b5b3298.tar.gz
[atan.dat] copied from branch feature-inverse-trigo
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@681 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/atan.dat')
-rw-r--r--tests/atan.dat142
1 files changed, 142 insertions, 0 deletions
diff --git a/tests/atan.dat b/tests/atan.dat
new file mode 100644
index 0000000..3f06b38
--- /dev/null
+++ b/tests/atan.dat
@@ -0,0 +1,142 @@
+# Data file for mpc_atan.
+#
+# Copyright (C) 2009 Philippe Th\'eveny
+#
+# 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.
+#
+# The line format respects the parameter order in function prototype as
+# follow:
+#
+# 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
+#
+# where op = op_re + i * op_im, rop = rop_re + i * rop_im,
+# rop_re is ROP_RE rounded to nearest to the precision of PREC_ROP_RE
+# rop_im is ROP_IM rounded to nearest to the precision of PREC_ROP_IM
+# op_re is OP_RE rounded to nearest to the precision of PREC_OP_RE
+# op_im is OP_IM rounded to nearest to the precision of PREC_OP_IM
+# ROP_RE is checked against Re(atan op) rounded to the precision PREC_ROP_RE
+# in the direction RND_RE
+# ROP_IM is checked against Im(atan op) rounded to the precision PREC_ROP_IM
+# in the direction RND_IM
+# INEX_RE is the ternary value for the real part with the following notation:
+# "?" ternary value not checked
+# "+" if ROP_RE is greater than the exact mathematical result
+# "0" if ROP_RE is exactly the mathematical result
+# "-" if ROP_RE is less than the exact mathematical result
+# (m.m. INEX_IM)
+# rounding modes notation:
+# "N" is rounding to nearest
+# "Z" is rounding towards zero
+# "U" is rounding towards plus infinity
+# "D" is rounding towards minus infinity
+# Use prefixes "0b" for values in base two, "0x" for values in base sixteen,
+# no prefix for value in base ten.
+# In all bases, "nan" is NaN, "inf" is infinity;
+# The sign of the result is checked with "+inf", "-inf", "-0", or "+0".
+
+# special values (following ISO C99 standard)
++ 0 53 -0x1921FB54442D18p-52 53 -0 53 -inf 53 -inf N N
++ 0 53 -0x1921FB54442D18p-52 53 -0 53 -inf 53 -1 N N
++ 0 53 -0x1921FB54442D18p-52 53 -0 53 -inf 53 -0 N N
++ 0 53 -0x1921FB54442D18p-52 53 +0 53 -inf 53 +0 N N
++ 0 53 -0x1921FB54442D18p-52 53 +0 53 -inf 53 +1 N N
++ 0 53 -0x1921FB54442D18p-52 53 +0 53 -inf 53 +inf N N
++ 0 53 -0x1921FB54442D18p-52 53 0 53 -inf 53 nan N N
++ 0 53 -0x1921FB54442D18p-52 53 -0 53 -6 53 -inf N N
++ 0 53 -0x1921FB54442D18p-52 53 +0 53 -6 53 +inf N N
+0 0 53 nan 53 nan 53 -6 53 nan N N
++ 0 53 -0x1921FB54442D18p-52 53 -0 53 -0 53 -inf N N
+0 0 53 -0 53 -0 53 -0 53 -0 N N
+0 0 53 -0 53 +0 53 -0 53 +0 N N
++ 0 53 -0x1921FB54442D18p-52 53 +0 53 -0 53 +inf N N
+0 0 53 nan 53 nan 53 -0 53 nan N N
+- 0 53 +0x1921FB54442D18p-52 53 -0 53 +0 53 -inf N N
+0 0 53 +0 53 -0 53 +0 53 -0 N N
+0 0 53 +0 53 +0 53 +0 53 +0 N N
+- 0 53 +0x1921FB54442D18p-52 53 +0 53 +0 53 +inf N N
+0 0 53 nan 53 nan 53 +0 53 nan N N
+- 0 53 +0x1921FB54442D18p-52 53 -0 53 +6 53 -inf N N
+- 0 53 +0x1921FB54442D18p-52 53 +0 53 +6 53 +inf N N
+0 0 53 nan 53 nan 53 +6 53 nan N N
+- 0 53 +0x1921FB54442D18p-52 53 -0 53 +inf 53 -inf N N
+- 0 53 +0x1921FB54442D18p-52 53 -0 53 +inf 53 -1 N N
+- 0 53 +0x1921FB54442D18p-52 53 -0 53 +inf 53 -0 N N
+- 0 53 +0x1921FB54442D18p-52 53 +0 53 +inf 53 +0 N N
+- 0 53 +0x1921FB54442D18p-52 53 +0 53 +inf 53 +1 N N
+- 0 53 +0x1921FB54442D18p-52 53 +0 53 +inf 53 +inf N N
+- 0 53 +0x1921FB54442D18p-52 53 0 53 +inf 53 nan N N
+0 0 53 nan 53 -0 53 nan 53 -inf N N
+0 0 53 nan 53 nan 53 nan 53 -1 N N
+0 0 53 nan 53 -0 53 nan 53 -0 N N
+0 0 53 nan 53 +0 53 nan 53 +0 N N
+0 0 53 nan 53 nan 53 nan 53 +1 N N
+0 0 53 nan 53 +0 53 nan 53 +inf N N
+0 0 53 nan 53 nan 53 nan 53 nan N N
+
+# pure real argument
+- 0 53 -0x16DCC57BB565FDp-52 53 -0 53 -7 53 -0 N N
+- 0 53 -0x16DCC57BB565FDp-52 53 +0 53 -7 53 +0 N N
++ 0 53 -0x1F730BD281F69Bp-53 53 -0 53 -1.5 53 -0 N N
++ 0 53 -0x1F730BD281F69Bp-53 53 +0 53 -1.5 53 +0 N N
++ 0 53 -0x1921FB54442D18p-53 53 -0 53 -1 53 -0 N N
++ 0 53 -0x1921FB54442D18p-53 53 +0 53 -1 53 +0 N N
+- 0 53 -0x1700A7C5784634p-53 53 -0 53 -0.875 53 -0 N N
+- 0 53 -0x1700A7C5784634p-53 53 +0 53 -0.875 53 +0 N N
+- 0 53 -0x1FD5BA9AAC2F6Ep-56 53 -0 53 -0.125 53 -0 N N
+- 0 53 -0x1FD5BA9AAC2F6Ep-56 53 +0 53 -0.125 53 +0 N N
++ 0 53 +0x1FD5BA9AAC2F6Ep-56 53 +0 53 +0.125 53 +0 N N
++ 0 53 +0x1FD5BA9AAC2F6Ep-56 53 -0 53 +0.125 53 -0 N N
++ 0 53 +0x1700A7C5784634p-53 53 +0 53 +0.875 53 +0 N N
++ 0 53 +0x1700A7C5784634p-53 53 -0 53 +0.875 53 -0 N N
+- 0 53 +0x1921FB54442D18p-53 53 +0 53 +1 53 +0 N N
+- 0 53 +0x1921FB54442D18p-53 53 -0 53 +1 53 -0 N N
+- 0 53 +0x1F730BD281F69Bp-53 53 +0 53 +1.5 53 +0 N N
+- 0 53 +0x1F730BD281F69Bp-53 53 -0 53 +1.5 53 -0 N N
++ 0 53 +0x16DCC57BB565FDp-52 53 +0 53 +7 53 +0 N N
++ 0 53 +0x16DCC57BB565FDp-52 53 -0 53 +7 53 -0 N N
+
+# pure imaginary argument
++ + 53 -0x1921FB54442D18p-52 53 -0x1269621134DB92p-55 53 -0 53 -7 N N
+- + 53 +0x1921FB54442D18p-52 53 -0x1269621134DB92p-55 53 +0 53 -7 N N
++ + 53 -0x1921FB54442D18p-52 53 -0x19C041F7ED8D33p-53 53 -0 53 -1.5 N N
+- + 53 +0x1921FB54442D18p-52 53 -0x19C041F7ED8D33p-53 53 +0 53 -1.5 N N
+0 0 53 nan 53 -inf 53 -0 53 -1 N N
+0 0 53 nan 53 -inf 53 +0 53 -1 N N
+0 + 53 -0 53 -0x15AA16394D481Fp-52 53 -0 53 -0.875 N N
+0 + 53 +0 53 -0x15AA16394D481Fp-52 53 +0 53 -0.875 N N
+0 + 53 -0 53 -0x1015891C9EAEF7p-55 53 -0 53 -0.125 N N
+0 + 53 +0 53 -0x1015891C9EAEF7p-55 53 +0 53 -0.125 N N
+0 - 53 +0 53 +0x1015891C9EAEF7p-55 53 +0 53 +0.125 N N
+0 - 53 -0 53 +0x1015891C9EAEF7p-55 53 -0 53 +0.125 N N
+0 - 53 +0 53 +0x15AA16394D481Fp-52 53 +0 53 +0.875 N N
+0 - 53 -0 53 +0x15AA16394D481Fp-52 53 -0 53 +0.875 N N
+0 0 53 nan 53 +inf 53 +0 53 +1 N N
+0 0 53 nan 53 +inf 53 -0 53 +1 N N
+- - 53 +0x1921FB54442D18p-52 53 +0x19C041F7ED8D33p-53 53 +0 53 +1.5 N N
++ - 53 -0x1921FB54442D18p-52 53 +0x19C041F7ED8D33p-53 53 -0 53 +1.5 N N
+- - 53 +0x1921FB54442D18p-52 53 +0x1269621134DB92p-55 53 +0 53 +7 N N
++ - 53 -0x1921FB54442D18p-52 53 +0x1269621134DB92p-55 53 -0 53 +7 N N
+0 + 53 +0 53 0x1FFFFFFFFFFF82p-52 53 +0 53 0x1ED9505E1BC3C2p-53 N N
+0 0 53 nan 53 -inf 53 +0 53 -1 N N
+0 0 53 nan 53 +inf 53 +0 53 +1 N N
+
+# IEEE-754 double precision
+
+#
++ - 72 0x91EA521228BFC46ACAp-118 72 -0x9E96A01DBAD6470974p-73 72 0x84C3E02A5C6DEE8410p-118 72 -0x99B43C52A95A21C220p-73 U N
++ - 156 -0xC90FDAA22167B20DB08A0C3B1FF415CABE49624p-155 156 0xEA84E971BD52E49CCEE036E303D5ECB2D9D9B9Ap-222 156 -0xF0CE58073F866A53F25DB85DE8D503FBDD81051p-109 156 0xCF81D7C76BB9754A52056CB0F144B0C6700CC8Cp-128 N N