Mandelbrot mit JSXGraph
Aus Wiki1
(Unterschied zwischen Versionen)
| Zeile 35: | Zeile 35: | ||
function mandelbrotIter(cx, cy, maxIter) { | function mandelbrotIter(cx, cy, maxIter) { | ||
let x = 0, y = 0, iter = 0; | let x = 0, y = 0, iter = 0; | ||
| - | while (x*x + y*y <= | + | while (x*x + y*y <= 4 && iter < maxIter) { |
const xtemp = x*x - y*y + cx; | const xtemp = x*x - y*y + cx; | ||
y = 2*x*y + cy; | y = 2*x*y + cy; | ||
Aktuelle Version vom 14:08, 22. Dez. 2025
Mit den Schiebereglern können Iterations-Tiefe und Zoom gesteuert werden. Mit der Maus+linke Maustaste kann der Bildausschnitt verschoben werden.
