File:Fubini Nightmare foliation Katok example.svg
From Wikimedia Commons, the free media repository
Fubini_Nightmare_foliation_Katok_example.svg (SVG file, nominally 720 × 720 pixels, file size: 1.62 MB)
[edit] Summary
| Description |
English: Fubini Nighmare foliation example due to Katok
|
|---|---|
| Date |
3 July 2009 |
| Source |
Own work |
| Author | |
| Permission (Reusing this image) |
See below. |
[edit] Licensing
| This file is made available under the Creative Commons CC0 waiver. The author of this work has dedicated it to the public by waiving all of his or her rights to the work under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law. Deutsch | English | Suomi | Français | Italiano | Lietuvių | Македонски | 中文 | 中文(简体) | 中文(繁體) | +/− |
[edit] Source
| This vector image was created with Asymptote. |
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:
#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(a[i]==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; }
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
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 21:43, 11 July 2009 | 720×720 (1.62 MB) | Ilya Voyager (talk | contribs) | (sizes fixed) | |
| 07:25, 3 July 2009 | 720×720 (1.65 MB) | Ilya Voyager (talk | contribs) | ({{Information |Description={{en|1=Fubini Nighmare foliation example due to Katok}} |Source=Own work by uploader |Author=Ilya Voyager |Date=2009-07-03 |Permission= |other_versions= }} <!--{{ImageUpload|full}}-->) |
- Edit this file using an external application (See the setup instructions for more information)
File links
There are no pages that link to this file.