progs/mandelbrot.sc
changeset 488 5deaf53c2faa
parent 487 efad9725dfd8
parent 484 c4561fc667b7
child 489 d51cacc92480
equal deleted inserted replaced
487:efad9725dfd8 488:5deaf53c2faa
   163 
   163 
   164 // some more computations with example 3
   164 // some more computations with example 3
   165 
   165 
   166 val delta = (exc2 - exc1) * 0.0333
   166 val delta = (exc2 - exc1) * 0.0333
   167 
   167 
   168 //println(s"${time_needed(
   168 println(s"${time_needed(
   169 //  for (n <- (0 to 12)) 
   169   for (n <- (0 to 25)) 
   170 //     mandelbrot(exc1 + delta * n, 
   170      mandelbrot(exc1 + delta * n, 
   171 //                exc2 - delta * n, 100))} secs") 
   171                 exc2 - delta * n, 1000))} secs") 
   172 
   172 
   173 
   173 
   174 
   174 
   175 // Larry Paulson's example
   175 // Larry Paulson's example
   176 val exl1 = -0.74364990 + 0.13188170 * i
   176 val exl1 = -0.74364990 + 0.13188170 * i