equal
deleted
inserted
replaced
111 |
111 |
112 // example 2 |
112 // example 2 |
113 val exb1 = Complex(-0.37465401, 0.659227668) |
113 val exb1 = Complex(-0.37465401, 0.659227668) |
114 val exb2 = Complex(-0.37332410, 0.66020767) |
114 val exb2 = Complex(-0.37332410, 0.66020767) |
115 |
115 |
116 //time_needed(mandelbrot(exb1, exb2, 1000)) |
116 time_needed(mandelbrot(exb1, exb2, 1000)) |
117 |
117 |
118 // example 3 |
118 // example 3 |
119 val exc1 = Complex(0.435396403, 0.367981352) |
119 val exc1 = Complex(0.435396403, 0.367981352) |
120 val exc2 = Complex(0.451687191, 0.380210061) |
120 val exc2 = Complex(0.451687191, 0.380210061) |
121 |
121 |
125 val delta = (exc2 - exc1) * 0.0333 |
125 val delta = (exc2 - exc1) * 0.0333 |
126 |
126 |
127 time_needed( |
127 time_needed( |
128 for (i <- (0 to 12)) |
128 for (i <- (0 to 12)) |
129 mandelbrot(exc1 + delta * i, |
129 mandelbrot(exc1 + delta * i, |
130 exc2 - delta * i, 1000))val exc1 = Complex(0.435396403, 0.367981352) |
130 exc2 - delta * i, 1000)) |
|
131 |
|
132 val exc1 = Complex(0.435396403, 0.367981352) |
131 val exc2 = Complex(0.451687191, 0.380210061) |
133 val exc2 = Complex(0.451687191, 0.380210061) |
132 |
134 |
133 //time_needed(mandelbrot(exc1, exc2, 1000)) |
135 //time_needed(mandelbrot(exc1, exc2, 1000)) |
134 |
136 |
135 // some more computations with example 3 |
137 // some more computations with example 3 |