--- a/progs/mandelbrot.scala Wed Jul 04 14:48:05 2018 +0100
+++ b/progs/mandelbrot.scala Tue Jul 10 15:09:28 2018 +0100
@@ -98,7 +98,7 @@
val d_y = (end.im - start.im) / H
for (y <- (0 until H)) {
- for (x <- (0 until W)) {
+ for (x <- (0 until W))) {
val c = start +
(x * d_x + y * d_y * i)
@@ -148,12 +148,12 @@
val delta = (exc2 - exc1) * 0.0333
-
+/*
time_needed(
for (n <- (0 to 12))
mandelbrot(exc1 + delta * n,
exc2 - delta * n, 100))
-
+*/
/*
time_needed(
for (n <- (0 to 12))
@@ -162,3 +162,10 @@
*/
+// Larry's example
+// example 2
+val exl1 = -0.74364990 + 0.13188204 * i
+val exl2 = -0.74291189 + 0.13262005 * i
+
+time_needed(mandelbrot(exl1, exl2, 1000))
+