summaryrefslogtreecommitdiff
path: root/tests/ttan.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-23 12:24:50 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-23 12:24:50 +0000
commit7a9011ba5b38de2496079f590362cd2a80c60da3 (patch)
tree4f825caca97557ccfc100359e4a095d217a0d0f3 /tests/ttan.c
parenta0fdd560167ff7e18abf916ebb9ef284ef141e37 (diff)
downloadmpc-7a9011ba5b38de2496079f590362cd2a80c60da3.tar.gz
changed GMP_RND? to MPFR_RND?
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/ttan.c')
-rw-r--r--tests/ttan.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/ttan.c b/tests/ttan.c
index f1d826a..c7c672c 100644
--- a/tests/ttan.c
+++ b/tests/ttan.c
@@ -1,6 +1,6 @@
/* ttan -- test file for mpc_tan.
-Copyright (C) 2008, 2011 INRIA
+Copyright (C) 2008, 2011, 2012 INRIA
This file is part of GNU MPC.
@@ -38,8 +38,8 @@ pure_real_argument (void)
/* tan(1 +i*0) = tan(1) +i*0 */
mpc_set_ui_ui (z, 1, 0, MPC_RNDNN);
- mpfr_set_ui (x, 1, GMP_RNDN);
- mpfr_tan (tan_x, x, GMP_RNDN);
+ mpfr_set_ui (x, 1, MPFR_RNDN);
+ mpfr_tan (tan_x, x, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_realref (tan_z), tan_x) != 0
|| !mpfr_zero_p (mpc_imagref (tan_z)) || mpfr_signbit (mpc_imagref (tan_z)))
@@ -59,11 +59,11 @@ pure_real_argument (void)
}
/* tan(Pi/2 +i*0) = +Inf +i*0 */
- mpfr_const_pi (x, GMP_RNDN);
- mpfr_div_2ui (x, x, 1, GMP_RNDN);
- mpfr_set (mpc_realref (z), x, GMP_RNDN);
- mpfr_set_ui (mpc_imagref (z), 0, GMP_RNDN);
- mpfr_tan (tan_x, x, GMP_RNDN);
+ mpfr_const_pi (x, MPFR_RNDN);
+ mpfr_div_2ui (x, x, 1, MPFR_RNDN);
+ mpfr_set (mpc_realref (z), x, MPFR_RNDN);
+ mpfr_set_ui (mpc_imagref (z), 0, MPFR_RNDN);
+ mpfr_tan (tan_x, x, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_realref (tan_z), tan_x) != 0
|| !mpfr_zero_p (mpc_imagref (tan_z)) || mpfr_signbit (mpc_imagref (tan_z)))
@@ -83,9 +83,9 @@ pure_real_argument (void)
}
/* tan(-Pi/2 +i*0) = -Inf +i*0 */
- mpfr_neg (x, x, GMP_RNDN);
+ mpfr_neg (x, x, MPFR_RNDN);
mpc_neg (z, z, MPC_RNDNN);
- mpfr_tan (tan_x, x, GMP_RNDN);
+ mpfr_tan (tan_x, x, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_realref (tan_z), tan_x) != 0
|| !mpfr_zero_p (mpc_imagref (tan_z)) || mpfr_signbit (mpc_imagref (tan_z)))
@@ -128,8 +128,8 @@ pure_imaginary_argument (void)
/* tan(0 +i) = +0 +i*tanh(1) */
mpc_set_ui_ui (z, 0, 1, MPC_RNDNN);
- mpfr_set_ui (y, 1, GMP_RNDN);
- mpfr_tanh (tanh_y, y, GMP_RNDN);
+ mpfr_set_ui (y, 1, MPFR_RNDN);
+ mpfr_tanh (tanh_y, y, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_imagref (tan_z), tanh_y) != 0
|| !mpfr_zero_p (mpc_realref (tan_z)) || mpfr_signbit (mpc_realref (tan_z)))
@@ -137,15 +137,15 @@ pure_imaginary_argument (void)
mpc_t c99;
mpc_init2 (c99, prec);
- mpfr_set_ui (mpc_realref (c99), 0, GMP_RNDN);
- mpfr_set (mpc_imagref (c99), tanh_y, GMP_RNDN);
+ mpfr_set_ui (mpc_realref (c99), 0, MPFR_RNDN);
+ mpfr_set (mpc_imagref (c99), tanh_y, MPFR_RNDN);
TEST_FAILED ("mpc_tan", z, tan_z, c99, MPC_RNDNN);
}
/* tan(0 -i) = +0 +i*tanh(-1) */
mpc_conj (z, z, MPC_RNDNN);
- mpfr_neg (tanh_y, tanh_y, GMP_RNDN);
+ mpfr_neg (tanh_y, tanh_y, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_imagref (tan_z), tanh_y) != 0
|| !mpfr_zero_p (mpc_realref (tan_z)) || mpfr_signbit (mpc_realref (tan_z)))
@@ -153,15 +153,15 @@ pure_imaginary_argument (void)
mpc_t c99;
mpc_init2 (c99, prec);
- mpfr_set_ui (mpc_realref (c99), 0, GMP_RNDN);
- mpfr_set (mpc_imagref (c99), tanh_y, GMP_RNDN);
+ mpfr_set_ui (mpc_realref (c99), 0, MPFR_RNDN);
+ mpfr_set (mpc_imagref (c99), tanh_y, MPFR_RNDN);
TEST_FAILED ("mpc_tan", z, tan_z, c99, MPC_RNDNN);
}
/* tan(-0 +i) = -0 +i*tanh(1) */
mpc_neg (z, z, MPC_RNDNN);
- mpfr_neg (tanh_y, tanh_y, GMP_RNDN);
+ mpfr_neg (tanh_y, tanh_y, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_imagref (tan_z), tanh_y) != 0
|| !mpfr_zero_p (mpc_realref (tan_z)) || !mpfr_signbit (mpc_realref (tan_z)))
@@ -169,15 +169,15 @@ pure_imaginary_argument (void)
mpc_t c99;
mpc_init2 (c99, prec);
- mpfr_set_ui (mpc_realref (c99), 0, GMP_RNDN);
- mpfr_set (mpc_imagref (c99), tanh_y, GMP_RNDN);
+ mpfr_set_ui (mpc_realref (c99), 0, MPFR_RNDN);
+ mpfr_set (mpc_imagref (c99), tanh_y, MPFR_RNDN);
TEST_FAILED ("mpc_tan", z, tan_z, c99, MPC_RNDNN);
}
/* tan(-0 -i) = -0 +i*tanh(-1) */
mpc_conj (z, z, MPC_RNDNN);
- mpfr_neg (tanh_y, tanh_y, GMP_RNDN);
+ mpfr_neg (tanh_y, tanh_y, MPFR_RNDN);
mpc_tan (tan_z, z, MPC_RNDNN);
if (mpfr_cmp (mpc_imagref (tan_z), tanh_y) != 0
|| !mpfr_zero_p (mpc_realref (tan_z)) || !mpfr_signbit (mpc_realref (tan_z)))
@@ -185,8 +185,8 @@ pure_imaginary_argument (void)
mpc_t c99;
mpc_init2 (c99, prec);
- mpfr_set_ui (mpc_realref (c99), 0, GMP_RNDN);
- mpfr_set (mpc_imagref (c99), tanh_y, GMP_RNDN);
+ mpfr_set_ui (mpc_realref (c99), 0, MPFR_RNDN);
+ mpfr_set (mpc_imagref (c99), tanh_y, MPFR_RNDN);
TEST_FAILED ("mpc_tan", z, tan_z, c99, MPC_RNDNN);
}