Keywords: Fubini Nightmare foliation Katok example.svg en Fubini Nighmare foliation example due to Katok Own Actually I've used C++-program to produce Asymptote source See ru ÐšÐ¾ÑˆÐ¼Ð°Ñ Ð¤ÑƒÐ±Ð¸Ð½Ð¸ Russian for details on the algorithm I hereby release the following source code into the public domain You have to do the following in order to produce an svg file assuming the file above is saved as 'fubini C' g++ fubini C -o fubini /fubini > fubini asy prepare a cup of coffee here it's a long calculations with default options asy fubini asy pstoedit fubini eps fubini svg Ilya Voyager 2009-07-03 Other fields Asymptote + C include <iostream> include <math h> include <vector> include <time h> include <stdlib h> include <assert h> using namespace std; double F double p vector<int> a int N assert p>0 p<1 ; int i; double x 0; double q 1-p; for i 0;i<N;i++ if ai 1 x+ q; q p; else q 1-p ; return x; main srand time NULL ; vector<int> a; double prec 2E-3; int N int 1/ prec prec ; int exp 500; int i j; double p; bool first true; cout << import graph;\nimport math;\nimport fontsize;\nunitsize 7inch ;\ndefaultpen 0 45mm ;\n << endl; for i 0;i<exp;i++ a clear ; for j 0;j<N;j++ a push_back rand 2 ; first true; for p 2 prec;p<1-2 prec;p+ prec if first cout << draw ; first false; else cout << -- ; cout << << p << << F p a N << ; cout << ; << endl; cout << xaxis \ p \ BottomTop fontsize 48 ;\nyaxis \ x \ LeftRight fontsize 48 ; << endl; CC0 Dynamical systems Images with C++ source code Guido Fubini |