diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-11-07 14:07:03 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-11-07 14:07:03 +0000 |
commit | 6f20c07524e95b26b82a224fb44020123664c873 (patch) | |
tree | 6ba259a0be578d0d23467499f753f8f35933b346 /tests/tlog.c | |
parent | 306fc8a3f3085b9f96e9def03c2b9fc29d12375b (diff) | |
download | mpc-6f20c07524e95b26b82a224fb44020123664c873.tar.gz |
random.c: Add new parameter zero_probability to test_default_random in order to provide a probability of zero in one number's part independently to number precision. Change also neg_number_p boolean parameter to negative_probability.
mpc-tests.h: Change prototype of test_default_random.
tmul.c, tlog.c, tgeneric.c: Change calls to test_default_random.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@282 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tlog.c')
-rw-r--r-- | tests/tlog.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/tlog.c b/tests/tlog.c index b515a09..e6db74f 100644 --- a/tests/tlog.c +++ b/tests/tlog.c @@ -45,11 +45,7 @@ check_exp_log (void) /* Test whether exp (log (z)) = z, where z is no pure real and no pure imaginary. */ - test_default_random (z, 0, 10, 1); - if (mpfr_zero_p (MPC_RE (z))) - mpfr_set (MPC_RE (z), MPC_IM (z), GMP_RNDN); - else if (mpfr_zero_p (MPC_IM (z))) - mpfr_set (MPC_IM (z), MPC_RE (z), GMP_RNDN); + test_default_random (z, 0, 10, 128, 0); mpc_log (tmp, z, MPC_RNDNN); mpc_exp (z2, tmp, MPC_RNDNN); |