זוהי תמונה מרוטשת, זאת אומרת שהתמונה שונתה בצורה דיגיטלית מהמקור. Modifications: Vectorization. את התמונה המקורית ניתן לראות ב: Amoeba2.png. השינוי בוצע על ידי Zerodamage.
ייחוס – יש לתת ייחוס הולם, לתת קישור לרישיון, ולציין אם נעשו שינויים. אפשר לעשות את זה בכל צורה סבירה, אבל לא בשום צורה שמשתמע ממנה שמעניק הרישיון תומך בך או בשימוש שלך.
https://creativecommons.org/licenses/by/3.0CC BY 3.0 Creative Commons Attribution 3.0 truetrue
C++ code
#include<iostream>#include<fstream>#include<cmath>#include<complex>usingnamespacestd;doublesmall=1e-14;doublemylog(double);intmain(){doubleA=-5,B=5;intN=1000;doubleh=(B-A)/(N-1);doubletheta0=2*M_PI/(N-1.0);ofstreammfile("data.txt");for(inti=0;i<N;i++){doubler=exp(A+i*h);for(intj=0;j<N;j++){doubletheta=j*theta0;complex<double>z2=polar(r,theta);complex<double>root=sqrt(25.0*z2*z2-12.0*(z2*z2*z2+1.0));complex<double>z11=(-5.0*z2+root)/6.0;complex<double>z12=(-5.0*z2-root)/6.0;doublea1=mylog(abs(z11));doublea2=mylog(abs(z12));doubleb=mylog(abs(z2));mfile<<a1<<' '<<b<<endl;mfile<<a2<<' '<<b<<endl;}}mfile.close();return0;}doublemylog(doublex){if(x<0){cerr<<"Error in log, negative x!"<<endl;exit(0);}if(x<small){returnlog(small);}returnlog(x);}
Matlab code which reads the data output by the C++ code and graphs it