summaryrefslogtreecommitdiff
path: root/tests/tsin.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-28 10:31:03 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-28 10:31:03 +0000
commit307b49227ec2fe81c3677b7bfb4643e84256306e (patch)
tree9ef6f85d4499c09f2348d2cd3cff9b6560d245aa /tests/tsin.c
parente801bd135f4cf1b510d4e2bb2e7daf83e17cda50 (diff)
downloadmpc-307b49227ec2fe81c3677b7bfb4643e84256306e.tar.gz
partial fix for problems with huge exponents reported by Chris Saunders
(http://lists.gforge.inria.fr/pipermail/mpc-discuss/2010-June/000750.html) More work is needed for tan (detect when Im(result) is very near -1 or 1) and tanh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@795 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsin.c')
-rw-r--r--tests/tsin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tsin.c b/tests/tsin.c
index 1748fae..f11cbe4 100644
--- a/tests/tsin.c
+++ b/tests/tsin.c
@@ -1,6 +1,6 @@
/* test file for mpc_sin.
-Copyright (C) 2007, 2008 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
+Copyright (C) 2007, 2008, 2010 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
This file is part of the MPC Library.
@@ -28,6 +28,8 @@ main (void)
test_start ();
+ mpfr_set_emin (mpfr_get_emin_min ());
+ mpfr_set_emax (mpfr_get_emax_max ());
data_check (f, "sin.dat");
tgeneric (f, 2, 512, 7, 7);