From bcf75e0e2ef02c6897a0b8d2a1dc6d6378f43e2c Mon Sep 17 00:00:00 2001 From: josch Date: Fri, 28 Jun 2013 15:54:33 +0200 Subject: [PATCH] fix bailout value --- mandel_dd.c | 6 +++--- mandel_mpfr.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mandel_dd.c b/mandel_dd.c index 0356b47..1ca48c0 100644 --- a/mandel_dd.c +++ b/mandel_dd.c @@ -22,12 +22,12 @@ int main(int argc, char **argv) { DoubleDouble centerx, centery; centerx = dd_new(-0.7436438870371587, -3.628952515063387E-17); centery = dd_new(0.13182590420531198, -1.2892807754956678E-17); - double bailout = 4; // the distance must not be greater than 2 (4 = 2*2) + double bailout = 128; // with a smaller value there are lines on magn=1 double logLogBailout = log(log(bailout)); DoubleDouble magn = dd_new(strtod(argv[5], NULL), 0); - // maxiter = width * sqrt(magn); + /*// maxiter = width * sqrt(magn); temp1 = dd_sqrt(magn); - unsigned long maxiter = width * dd_get_ui(temp1); + unsigned long maxiter = width * dd_get_ui(temp1);*/ DoubleDouble x2, y2, x0d, y1d; // x0d = 4 / magn / width; x0d = dd_ui_div(4, magn); diff --git a/mandel_mpfr.c b/mandel_mpfr.c index 04ef30c..0fb4a56 100644 --- a/mandel_mpfr.c +++ b/mandel_mpfr.c @@ -25,7 +25,7 @@ int main(int argc, char **argv) { mpfr_init2(centery, 300); mpfr_set_str(centerx, argv[3], 10, MPFR_RNDN); mpfr_set_str(centery, argv[4], 10, MPFR_RNDN); - double bailout = 4; // the distance must not be greater than 2 (4 = 2*2) + double bailout = 128; // with a smaller value there are lines on magn=1 double logLogBailout = log(log(bailout)); mpfr_t magn; mpfr_init2(magn, 300);