//mandelbrot #include #include int main() { ifm::Wstream w(1000,600,"Mandelbrot"); int pixelxmin= -500; int pixelxmax= 500; double grid = 0.01; int pixelymin= -300; int pixelymax= 300; int bound = 3000; //change this if you PC ist slow double changex = 0; double changey =0; double x = 0; double y = 0; int iter = 0; double value = 0; double xt; double yt; register double cy; register double cx; std::cout << "Die Mandelbrotmenge:\nZum zoomen das Rechteck ziehen\n" << "(rechts-oben nach links-unten um nicht zu spiegeln)"; for(;;){ for(int positionx = pixelxmin; positionx>zoom; changex = changex -(500-(zoom.x1()+zoom.x2())/2)*grid; changey = changey -(300-(zoom.y1()+zoom.y2())/2)*grid; grid *= (zoom.x2()-zoom.x1())/1000.0; if (grid<0)grid = -grid; std::cout << "Eckdaten:\nLange der roten Linie: "<<100*grid<<"\n" <<"Mittelpunkt: ("<<-changex<<"/"<<-changey<<")\n" <<""; if(grid < 10e-22&& grid > -10e-22)grid = 0.01; w<