// Loesung Blatt 2 AR-Prozesse und Van der Pol Oszillator // 5.11.2002 Kilian Bartholomé #include #include #include #include #include #include #include #include "/home/maiwald/include/nr.h" #include "/home/maiwald/include/nrutil.h" #define PI 3.141592653589 #ifdef WIN32 #include #else #include #endif int main(int argc, char** argv) { //Zugriff auf Systemzeit long millisekunden = 0; #ifdef WIN32 struct __timeb64 timebuffer; _ftime64( &timebuffer ); millisekunden = timebuffer.millitm; #else struct timeval tp; gettimeofday(&tp, NULL); millisekunden = tp.tv_usec; #endif long idum = - millisekunden; //Berechnung AR[1] Prozeß ofstream AR1out("AR1.txt",ios::out); int N=8192; double tauAR1=5.0; double aAR1=exp(-1.0/tauAR1); double xAR1[N]; double startwertAR1=0.1; xAR1[0]=startwertAR1; for(int i=1;i=sampling) { VDPout<