progs/mandelbrot.scala
changeset 174 90e0b1cc460b
parent 167 349d706586ef
child 186 f211d9cb856e
--- a/progs/mandelbrot.scala	Mon Mar 12 12:11:50 2018 +0000
+++ b/progs/mandelbrot.scala	Tue May 15 01:14:07 2018 +0100
@@ -113,7 +113,7 @@
 val exb1 = Complex(-0.37465401, 0.659227668)
 val exb2 = Complex(-0.37332410, 0.66020767)
 
-//time_needed(mandelbrot(exb1, exb2, 1000))
+time_needed(mandelbrot(exb1, exb2, 1000))
 
 // example 3
 val exc1 = Complex(0.435396403, 0.367981352)
@@ -127,7 +127,9 @@
 time_needed(
   for (i <- (0 to 12)) 
      mandelbrot(exc1 + delta * i, 
-                exc2 - delta * i, 1000))val exc1 = Complex(0.435396403, 0.367981352)
+                exc2 - delta * i, 1000))
+
+val exc1 = Complex(0.435396403, 0.367981352)
 val exc2 = Complex(0.451687191, 0.380210061)
 
 //time_needed(mandelbrot(exc1, exc2, 1000))