Mandelbrot mit JSXGraph

Aus Wiki1

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 21: Zeile 21:
   // Slider für Formel
   // Slider für Formel
-
   const sliderForm = board.create('slider', [[-2.3, 1.0], [1, 1.0], [1, 1, 50]], {
+
   const sliderForm = board.create('slider', [[-2.3, 0.7], [1, 0.7], [1, 1, 50]], {
     name:'Zoom',
     name:'Zoom',
     snapWidth:1
     snapWidth:1
Zeile 41: Zeile 41:
     let x = 0, y = 0, iter = 0;
     let x = 0, y = 0, iter = 0;
     while (x*x + y*y <= 4 && iter < maxIter) {
     while (x*x + y*y <= 4 && iter < maxIter) {
-
       const xtemp = x*x*x - y*y*y + cx;
+
       const xtemp = POW(x,sliderForm.Value()) - y*y*y + cx;
       y = 2*x*y + cy;
       y = 2*x*y + cy;
       x = xtemp;
       x = xtemp;

Version vom 12:23, 26. Sep. 2025

Mit den Schiebereglern können Iterations-Tiefe und Zoom gesteuert werden. Mit der Maus+linke Maustaste kann der Bildausschnitt verschoben werden.

Persönliche Werkzeuge