import java.applet.*; import java.awt.* ; public class vorlage0 extends Applet /* muss identisch Dateiname sein !*/ { /****************************************************************/ /* Globale Variablen :-( */ /****************************************************************/ /* Groesse der Eingabe Aussgabebereiche */ int N ; /* Anzahl Abtastwerte */ int maxx ; /* maxx Koordinate in pixel */ int maxy ; /* maxy Koordinate in pixel */ /*****************************************************************/ /* START (INIT) - STOP */ /* In dieser Phase ist noch keine Graphikausgabe moeglich */ /* Von den Funktionen wird im Programm nur "init" genutzt */ /*****************************************************************/ public void init() { /* INIT wird zu allererst aufgerufen */ int i; /* nur eine lokale Variable */ String text; /* ------------------------------------------------------------- */ /* DIE GLOBALEN VARIABLEN :-( INITIALISIEREN */ /* ------------------------------------------------------------- */ N = 350 ; /*text=(getParameter("g_xmax"));*/ setBackground(Color.black); setForeground(Color.white); } /* --------------------------------------------------------------*/ public void start() {} public void stop() {} public void destroy() {} /***************************************************************/ /***************************************************************/ void xyplot(Graphics g, double u, double v, int zahl) { int i,j; int r,gr,b; double amp; double min; double max; double s,a; int minb; int maxb; double x,xx,y,yy; /* Druckhilfsvariable Punkt / Linie */ String text; maxx = (int) (getSize().width) ; maxy = (int) (getSize().height); u=u*0.9; v=v*4.0; x=0.5*maxx*(u+0.0)*1.0*2.0; y=0.5*maxy*(1.0-v)*1.0; g.fillOval((int) x,(int) y,2,2); } void compute(Graphics g) { int i; /* INT Zaehler */ int sign; /* Vorzeichen */ String text; int vstep; /* VERHULST STEPS maximal 20 */ long id; /* Long Zaehler */ long grad; /* Long hoechster Polynomgrad */ long zahl; /* Aktuelle Dezimalzahl */ double u,v; /* komplexe Iterationsvariable*/ double ii; double jj; double alpha; double beta; double betrag; double a; /* Verhulst Parameter */ vstep=17; /* VORGABE VERHULST-STEPS */ a=1+Math.sqrt(5); /* VORGABE a - PARAMETER */ a=3.1; grad=1; for (i=0; i